This repository was archived by the owner on Mar 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
src/rules/typescript-eslint Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export interface NoMagicNumbersOption {
12
12
ignoreNumericLiteralTypes ?: boolean ;
13
13
ignoreEnums ?: boolean ;
14
14
ignoreReadonlyClassProperties ?: boolean ;
15
+ ignoreTypeIndexes ?: boolean ;
15
16
}
16
17
17
18
/**
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface NoShadowOption {
7
7
builtinGlobals ?: boolean ;
8
8
hoist ?: 'all' | 'functions' | 'never' ;
9
9
allow ?: string [ ] ;
10
+ ignoreOnInitialization ?: boolean ;
10
11
ignoreTypeValueShadow ?: boolean ;
11
12
ignoreFunctionTypeParameterNameValueShadow ?: boolean ;
12
13
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export type NoUnusedVarsOption =
13
13
argsIgnorePattern ?: string ;
14
14
caughtErrors ?: 'all' | 'none' ;
15
15
caughtErrorsIgnorePattern ?: string ;
16
+ destructuredArrayIgnorePattern ?: string ;
16
17
} ;
17
18
18
19
/**
Original file line number Diff line number Diff line change 1
1
import type { RuleConfig } from '../rule-config' ;
2
2
3
+ /**
4
+ * Option.
5
+ */
6
+ export interface UnifiedSignaturesOption {
7
+ ignoreDifferentlyNamedParameters ?: boolean ;
8
+ }
9
+
10
+ /**
11
+ * Options.
12
+ */
13
+ export type UnifiedSignaturesOptions = [ UnifiedSignaturesOption ?] ;
14
+
3
15
/**
4
16
* Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
5
17
*
6
18
* @see [unified-signatures](https://typescript-eslint.io/rules/unified-signatures)
7
19
*/
8
- export type UnifiedSignaturesRuleConfig = RuleConfig < [ ] > ;
20
+ export type UnifiedSignaturesRuleConfig = RuleConfig < UnifiedSignaturesOptions > ;
9
21
10
22
/**
11
23
* Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
You can’t perform that action at this time.
0 commit comments