File tree 4 files changed +9
-3
lines changed
packages/eslint-plugin-example-typed-linting
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ export default tseslint.config(
30
30
31
31
<!-- begin auto-generated rules list -->
32
32
33
- | Name | Description |
34
- | :----------------------------------------------------- | :------------------------ |
35
- | [ no-loop-over-enums] ( docs/rules/no-loop-over-enums.md ) | Avoid looping over enums. |
33
+ 💭 Requires [ type information] ( https://typescript-eslint.io/linting/typed-linting ) .
34
+
35
+ | Name | Description | 💭 |
36
+ | :----------------------------------------------------- | :------------------------ | :- |
37
+ | [ no-loop-over-enums] ( docs/rules/no-loop-over-enums.md ) | Avoid looping over enums. | 💭 |
36
38
37
39
<!-- end auto-generated rules list -->
38
40
Original file line number Diff line number Diff line change 1
1
# Avoid looping over enums (` example-typed-linting/no-loop-over-enums ` )
2
2
3
+ 💭 This rule requires [ type information] ( https://typescript-eslint.io/linting/typed-linting ) .
4
+
3
5
<!-- end auto-generated rule header -->
4
6
5
7
Example rule that demonstrates banning ` for-in ` looping over ` enum ` s.
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export const rule = createRule({
24
24
docs : {
25
25
description : "Avoid looping over enums." ,
26
26
recommended : true ,
27
+ requiresTypeChecking : true ,
27
28
} ,
28
29
messages : {
29
30
loopOverEnum : "Do not loop over enums." ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { ESLintUtils } from "@typescript-eslint/utils";
3
3
export interface ExampleTypedLintingRuleDocs {
4
4
description : string ;
5
5
recommended ?: boolean ;
6
+ requiresTypeChecking ?: boolean ;
6
7
}
7
8
8
9
export const createRule = ESLintUtils . RuleCreator < ExampleTypedLintingRuleDocs > (
You can’t perform that action at this time.
0 commit comments