Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit c92c995

Browse files
committed
Update typescript-eslint rules
1 parent 98d9a9d commit c92c995

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

src/rules/typescript-eslint/no-magic-numbers.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface NoMagicNumbersOption {
1212
ignoreNumericLiteralTypes?: boolean;
1313
ignoreEnums?: boolean;
1414
ignoreReadonlyClassProperties?: boolean;
15+
ignoreTypeIndexes?: boolean;
1516
}
1617

1718
/**

src/rules/typescript-eslint/no-shadow.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface NoShadowOption {
77
builtinGlobals?: boolean;
88
hoist?: 'all' | 'functions' | 'never';
99
allow?: string[];
10+
ignoreOnInitialization?: boolean;
1011
ignoreTypeValueShadow?: boolean;
1112
ignoreFunctionTypeParameterNameValueShadow?: boolean;
1213
}

src/rules/typescript-eslint/no-unused-vars.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type NoUnusedVarsOption =
1313
argsIgnorePattern?: string;
1414
caughtErrors?: 'all' | 'none';
1515
caughtErrorsIgnorePattern?: string;
16+
destructuredArrayIgnorePattern?: string;
1617
};
1718

1819
/**

src/rules/typescript-eslint/unified-signatures.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
import type { RuleConfig } from '../rule-config';
22

3+
/**
4+
* Option.
5+
*/
6+
export interface UnifiedSignaturesOption {
7+
ignoreDifferentlyNamedParameters?: boolean;
8+
}
9+
10+
/**
11+
* Options.
12+
*/
13+
export type UnifiedSignaturesOptions = [UnifiedSignaturesOption?];
14+
315
/**
416
* Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
517
*
618
* @see [unified-signatures](https://typescript-eslint.io/rules/unified-signatures)
719
*/
8-
export type UnifiedSignaturesRuleConfig = RuleConfig<[]>;
20+
export type UnifiedSignaturesRuleConfig = RuleConfig<UnifiedSignaturesOptions>;
921

1022
/**
1123
* Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.

0 commit comments

Comments
 (0)