Skip to content

Commit 2c864f3

Browse files
committed
feat!: @typescript-eslint/prefer-for-of
1 parent 005a63c commit 2c864f3

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/rules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
232232
},
233233
],
234234
'@typescript-eslint/prefer-find': ['error'],
235+
'@typescript-eslint/prefer-for-of': ['error'],
235236
'@typescript-eslint/prefer-function-type': ['error'],
236237
'@typescript-eslint/prefer-includes': ['error'],
237238
'@typescript-eslint/prefer-nullish-coalescing': [

src/test/_expected-exported-value.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ export const expectedTseslintRules: Record<
402402
},
403403
],
404404
'@typescript-eslint/prefer-find': ['error'],
405+
'@typescript-eslint/prefer-for-of': ['error'],
405406
'@typescript-eslint/prefer-function-type': ['error'],
406407
'@typescript-eslint/prefer-includes': ['error'],
407408
'@typescript-eslint/prefer-nullish-coalescing': [

src/test/_rules_to_consider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ export const promiseRulesToConsider = [
181181
]
182182

183183
export const tseslintRulesToConsider = [
184-
'@typescript-eslint/prefer-for-of',
185184
'@typescript-eslint/prefer-literal-enum-member',
186185
'@typescript-eslint/prefer-namespace-keyword',
187186
'@typescript-eslint/prefer-readonly-parameter-types',

0 commit comments

Comments
 (0)