Skip to content

Commit 5d4af16

Browse files
docs: add types for multiple rule options (#19616)
1 parent e8f8d57 commit 5d4af16

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

lib/types/rules.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,15 @@ export interface ESLintRules extends Linter.RulesRecord {
422422
[
423423
Partial<{
424424
exceptMethods: string[];
425+
/**
426+
* @default true
427+
*/
428+
enforceForClassFields: boolean;
429+
/**
430+
* @default false
431+
*/
432+
ignoreOverrideMethods: boolean;
433+
ignoreClassesWithImplements: "all" | "public-fields";
425434
}>,
426435
]
427436
>;
@@ -2350,6 +2359,10 @@ export interface ESLintRules extends Linter.RulesRecord {
23502359
| "constructors"
23512360
| "asyncFunctions"
23522361
| "asyncMethods"
2362+
| "privateConstructors"
2363+
| "protectedConstructors"
2364+
| "decoratedFunctions"
2365+
| "overrideMethods"
23532366
>;
23542367
}>,
23552368
]
@@ -3430,6 +3443,7 @@ export interface ESLintRules extends Linter.RulesRecord {
34303443
}
34313444
| {
34323445
property: string;
3446+
allowObjects?: string[];
34333447
message?: string | undefined;
34343448
}
34353449
>,

0 commit comments

Comments
 (0)