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

Commit 763a496

Browse files
committed
Update typescript-eslint rules
1 parent a2424bf commit 763a496

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/rules/typescript-eslint/explicit-function-return-type.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export interface ExplicitFunctionReturnTypeOption {
99
allowHigherOrderFunctions?: boolean;
1010
allowDirectConstAssertionInArrowFunctions?: boolean;
1111
allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean;
12+
allowedNames?: string[];
1213
}
1314

1415
/**

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ import type { RuleConfig } from '../rule-config';
44
* Option.
55
*/
66
export interface NoMagicNumbersOption {
7+
detectObjects?: boolean;
8+
enforceConst?: boolean;
9+
ignore?: (number | string)[];
10+
ignoreArrayIndexes?: boolean;
11+
ignoreDefaultValues?: boolean;
712
ignoreNumericLiteralTypes?: boolean;
813
ignoreEnums?: boolean;
914
ignoreReadonlyClassProperties?: boolean;
10-
[k: string]: any;
1115
}
1216

1317
/**

0 commit comments

Comments
 (0)