From 281bf6bc947e870f72f72031200b383f8ea71cf4 Mon Sep 17 00:00:00 2001 From: Sam Robson Date: Mon, 23 Feb 2026 17:53:13 +0000 Subject: [PATCH] feat: add 17 missing rules from eslint:recommended to flat config --- lib/configs/flat/recommended.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/configs/flat/recommended.js b/lib/configs/flat/recommended.js index 02113bc1..01310cb2 100644 --- a/lib/configs/flat/recommended.js +++ b/lib/configs/flat/recommended.js @@ -32,8 +32,10 @@ export default { 'eslint-comments/no-unused-disable': 'error', 'eslint-comments/no-unused-enable': 'error', 'eslint-comments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}], + 'for-direction': 'error', 'github/filenames-match-regex': 'error', 'func-style': ['error', 'declaration', {allowArrowFunctions: true}], + 'getter-return': 'error', 'github/array-foreach': 'error', 'github/no-implicit-buggy-globals': 'error', 'github/no-then': 'error', @@ -71,10 +73,12 @@ export default { 'import/no-webpack-loader-syntax': 'error', 'no-case-declarations': 'error', 'no-class-assign': 'error', + 'no-async-promise-executor': 'error', 'no-compare-neg-zero': 'error', 'no-cond-assign': 'error', 'no-console': 'error', 'no-const-assign': 'error', + 'no-constant-binary-expression': 'error', 'no-constant-condition': 'error', 'no-control-regex': 'error', 'no-debugger': 'error', @@ -82,10 +86,12 @@ export default { 'no-dupe-args': 'error', 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', + 'no-dupe-else-if': 'error', 'no-duplicate-case': 'error', 'no-empty': 'error', 'no-empty-character-class': 'error', 'no-empty-pattern': 'error', + 'no-empty-static-block': 'error', 'no-ex-assign': 'error', 'no-extra-boolean-cast': 'error', 'no-fallthrough': 'error', @@ -93,11 +99,16 @@ export default { 'no-global-assign': 'error', 'no-implicit-globals': 'error', 'no-implied-eval': 'error', + 'no-import-assign': 'error', 'no-inner-declarations': 'error', 'no-invalid-regexp': 'error', 'no-invalid-this': 'error', 'no-irregular-whitespace': 'error', + 'no-loss-of-precision': 'error', + 'no-misleading-character-class': 'error', + 'no-new-native-nonconstructor': 'error', 'no-new-symbol': 'error', + 'no-nonoctal-decimal-escape': 'error', 'no-obj-calls': 'error', 'no-octal': 'error', 'no-only-tests/no-only-tests': [ @@ -106,12 +117,14 @@ export default { block: ['describe', 'it', 'context', 'test', 'tape', 'fixture', 'serial', 'suite'], }, ], + 'no-prototype-builtins': 'error', 'no-redeclare': 'error', 'no-regex-spaces': 'error', 'no-return-assign': 'error', 'no-self-assign': 'error', 'no-sequences': ['error'], 'no-shadow': 'error', + 'no-shadow-restricted-names': 'error', 'no-sparse-arrays': 'error', 'no-this-before-super': 'error', 'no-throw-literal': 'error', @@ -119,8 +132,12 @@ export default { 'no-unreachable': 'error', 'no-unsafe-finally': 'error', 'no-unsafe-negation': 'error', + 'no-unsafe-optional-chaining': 'error', 'no-unused-labels': 'error', + 'no-unused-private-class-members': 'error', 'no-unused-vars': 'error', + 'no-useless-backreference': 'error', + 'no-useless-catch': 'error', 'no-useless-concat': 'error', 'no-useless-escape': 'error', 'no-var': 'error',