Skip to content

Commit 281bf6b

Browse files
committed
feat: add 17 missing rules from eslint:recommended to flat config
1 parent 3952d1c commit 281bf6b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/configs/flat/recommended.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ export default {
3232
'eslint-comments/no-unused-disable': 'error',
3333
'eslint-comments/no-unused-enable': 'error',
3434
'eslint-comments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}],
35+
'for-direction': 'error',
3536
'github/filenames-match-regex': 'error',
3637
'func-style': ['error', 'declaration', {allowArrowFunctions: true}],
38+
'getter-return': 'error',
3739
'github/array-foreach': 'error',
3840
'github/no-implicit-buggy-globals': 'error',
3941
'github/no-then': 'error',
@@ -71,33 +73,42 @@ export default {
7173
'import/no-webpack-loader-syntax': 'error',
7274
'no-case-declarations': 'error',
7375
'no-class-assign': 'error',
76+
'no-async-promise-executor': 'error',
7477
'no-compare-neg-zero': 'error',
7578
'no-cond-assign': 'error',
7679
'no-console': 'error',
7780
'no-const-assign': 'error',
81+
'no-constant-binary-expression': 'error',
7882
'no-constant-condition': 'error',
7983
'no-control-regex': 'error',
8084
'no-debugger': 'error',
8185
'no-delete-var': 'error',
8286
'no-dupe-args': 'error',
8387
'no-dupe-class-members': 'error',
8488
'no-dupe-keys': 'error',
89+
'no-dupe-else-if': 'error',
8590
'no-duplicate-case': 'error',
8691
'no-empty': 'error',
8792
'no-empty-character-class': 'error',
8893
'no-empty-pattern': 'error',
94+
'no-empty-static-block': 'error',
8995
'no-ex-assign': 'error',
9096
'no-extra-boolean-cast': 'error',
9197
'no-fallthrough': 'error',
9298
'no-func-assign': 'error',
9399
'no-global-assign': 'error',
94100
'no-implicit-globals': 'error',
95101
'no-implied-eval': 'error',
102+
'no-import-assign': 'error',
96103
'no-inner-declarations': 'error',
97104
'no-invalid-regexp': 'error',
98105
'no-invalid-this': 'error',
99106
'no-irregular-whitespace': 'error',
107+
'no-loss-of-precision': 'error',
108+
'no-misleading-character-class': 'error',
109+
'no-new-native-nonconstructor': 'error',
100110
'no-new-symbol': 'error',
111+
'no-nonoctal-decimal-escape': 'error',
101112
'no-obj-calls': 'error',
102113
'no-octal': 'error',
103114
'no-only-tests/no-only-tests': [
@@ -106,21 +117,27 @@ export default {
106117
block: ['describe', 'it', 'context', 'test', 'tape', 'fixture', 'serial', 'suite'],
107118
},
108119
],
120+
'no-prototype-builtins': 'error',
109121
'no-redeclare': 'error',
110122
'no-regex-spaces': 'error',
111123
'no-return-assign': 'error',
112124
'no-self-assign': 'error',
113125
'no-sequences': ['error'],
114126
'no-shadow': 'error',
127+
'no-shadow-restricted-names': 'error',
115128
'no-sparse-arrays': 'error',
116129
'no-this-before-super': 'error',
117130
'no-throw-literal': 'error',
118131
'no-undef': 'error',
119132
'no-unreachable': 'error',
120133
'no-unsafe-finally': 'error',
121134
'no-unsafe-negation': 'error',
135+
'no-unsafe-optional-chaining': 'error',
122136
'no-unused-labels': 'error',
137+
'no-unused-private-class-members': 'error',
123138
'no-unused-vars': 'error',
139+
'no-useless-backreference': 'error',
140+
'no-useless-catch': 'error',
124141
'no-useless-concat': 'error',
125142
'no-useless-escape': 'error',
126143
'no-var': 'error',

0 commit comments

Comments
 (0)