Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
extends: 'gemini-testing',
extends: ['gemini-testing', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Немного странная последовательность опций. Я бы в такой последовательности описывал - https://github.com/gemini-testing/hermione-storybook/blob/master/.eslintrc.js

};
4 changes: 3 additions & 1 deletion lib/types/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ interface MetaInfo {
isSetByUser: boolean;
}

export interface OptionParserConfig<Value, MappedValue, Result> {
/* eslint-disable @typescript-eslint/no-explicit-any */
export interface OptionParserConfig<Value, MappedValue, Result = any> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не понял а для чего ты тут столько any налупил? Давай хотя бы unknown юзать.

defaultValue?: Value | ((config: Result, currNode: any) => Value);
parseCli?: (input?: string) => Value | undefined;
parseEnv?: (input?: string) => Value | undefined;
validate?: (value: unknown, config: Result, currNode: any, meta: MetaInfo) => asserts value is Value;
map?(value: Value, config: Result, currNode: any, meta: MetaInfo): MappedValue;
isDeprecated?: boolean;
}
/* eslint-enable @typescript-eslint/no-explicit-any */

export interface OptionParser<Value, Result> {
(locator: Locator<Value>, config: Rooted<Result>): Value;
Expand Down
Loading