by AlloyTeam · eslint-config-alloy
Tencent AlloyTeam's config for JavaScript, TypeScript and React. Leaves formatting to Prettier and documents why each rule is on.
pnpm add -D eslint eslint-config-alloy// .eslintrc.json (legacy config format)
{
"extends": ["alloy", "alloy/react", "alloy/typescript"]
}| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| eslint/no-cond-assign | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-ex-assign | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-global-assign | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-shadow-restricted-names | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-sparse-arrays | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/use-isnan | error | In ESLint, Oxlint, Biome | 279.5M | +44.9% |
| eslint/no-empty-character-class | error | In ESLint, Oxlint, Biome | 278.3M | +45.0% |
| eslint/no-duplicate-case | error | In ESLint, Oxlint, Biome | 278.3M | +45.2% |
| eslint/no-empty-pattern | error | In ESLint, Oxlint, Biome | 278.3M | +45.2% |
| eslint/no-self-assign | error | In ESLint, Oxlint, Biome | 278.3M | +45.2% |
| eslint/valid-typeof | error | In ESLint, Oxlint, Biome | 278M | +44.8% |
| eslint/no-const-assign | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-dupe-keys | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-func-assign | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-obj-calls | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-unreachable | error | In ESLint, Oxlint, Biome | 276M | +45.0% |
| eslint/no-debugger | error | In ESLint, Oxlint, Biome | 275.4M | +45.8% |
| eslint/no-extra-boolean-cast | error | In ESLint, Oxlint, Biome | 275.4M | +45.8% |
| eslint/no-this-before-super | error | In ESLint, Oxlint, Biome | 275.4M | +45.2% |
| eslint/no-irregular-whitespace | error | In ESLint, Oxlint, Biome | 274.9M | +45.9% |
| eslint/no-unsafe-negation | error | In ESLint, Oxlint, Biome | 274.7M | +45.2% |
| eslint/no-async-promise-executor | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-compare-neg-zero | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-misleading-character-class | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-unsafe-finally | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/no-useless-catch | error | In ESLint, Oxlint, Biome | 274.2M | +46.0% |
| eslint/require-yield | error | In ESLint, Oxlint, Biome | 274.1M | +45.6% |
| eslint/no-constant-condition | error | In ESLint, Oxlint, Biome | 273.5M | +46.0% |
| eslint/no-useless-backreference | error | In ESLint, Oxlint, Biome | 273M | +46.1% |
| eslint/getter-return | error | In ESLint, Oxlint, Biome | 271.5M | +45.7% |
| eslint/constructor-super | error | In ESLint, Oxlint, Biome | 271.3M | +46.0% |
| eslint/no-class-assign | error | In ESLint, Oxlint, Biome | 271M | +46.1% |
| eslint/no-import-assign | error | In ESLint, Oxlint, Biome | 270.7M | +46.1% |
| eslint/for-direction | error | In ESLint, Oxlint, Biome | 270.1M | +46.5% |
| eslint/no-dupe-else-if | error | In ESLint, Oxlint, Biome | 270.1M | +46.5% |
| eslint/no-unsafe-optional-chaining | error | In ESLint, Oxlint, Biome | 269.9M | +46.5% |
| eslint/no-setter-return | error | In ESLint, Oxlint, Biome | 267.4M | +46.6% |
| eslint/no-unused-private-class-members | error | In ESLint, Oxlint, Biome | 259.6M | +49.1% |
| typescript/no-duplicate-enum-values | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/no-non-null-asserted-optional-chain | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/no-this-alias | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/prefer-namespace-keyword | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/triple-slash-reference | error | In ESLint, Oxlint, Biome | 256.9M | +52.0% |
| eslint/no-invalid-regexp | error | In ESLint, Oxlint | 250.3M | +40.3% |
| eslint/no-constant-binary-expression | error | In ESLint, Oxlint, Biome | 232.1M | +44.0% |
| eslint/no-fallthrough | error | In ESLint, Oxlint, Biome | 229.8M | +30.9% |
| eslint/no-regex-spaces | error | In ESLint, Oxlint, Biome | 229.8M | +30.9% |
| eslint/no-new-native-nonconstructor | error | In ESLint, Oxlint, Biome | 229.7M | +44.1% |
| eslint/no-case-declarations | error | In ESLint, Oxlint, Biome | 224.5M | +31.6% |
| typescript/no-unnecessary-type-constraint | error | In ESLint, Oxlint, Biome | 207.9M | +36.6% |
| eslint/no-empty | error | In ESLint, Oxlint, Biome | 196.5M | +25.1% |
| eslint/no-var | error | In ESLint, Oxlint, Biome | 193.9M | +27.7% |
| typescript/no-unused-vars | error | In ESLint, Biome | 184.2M | +27.9% |
| typescript/no-unused-expressions | error | In ESLint | 183.4M | +28.0% |
| typescript/no-namespace | error | In ESLint, Oxlint, Biome | 179.2M | +29.7% |
| typescript/no-require-imports | error | In ESLint, Oxlint, Biome | 176.6M | +29.0% |
| react/jsx-no-comment-textnodes | error | In ESLint, Oxlint, Biome | 166.5M | +46.5% |
| react/jsx-no-duplicate-props | error | In ESLint, Oxlint, Biome | 166.5M | +46.5% |
| react/no-danger-with-children | error | In ESLint, Oxlint, Biome | 165.3M | +46.9% |
| react/no-string-refs | error | In ESLint, Oxlint, Biome | 162.5M | +48.0% |
| react/no-children-prop | error | In ESLint, Oxlint, Biome | 161.2M | +48.4% |
| react/no-render-return-value | error | In ESLint, Oxlint, Biome | 161.2M | +48.4% |
| react/jsx-key | error | In ESLint, Oxlint, Biome | 157.9M | +49.8% |
| react/jsx-no-undef | error | In ESLint, Oxlint | 136.5M | +37.4% |
| react/no-is-mounted | error | In ESLint, Oxlint | 135.3M | +37.7% |
| react/require-render-return | error | In ESLint, Oxlint | 135.3M | +37.7% |
| react/jsx-uses-react | error | In ESLint | 132.4M | +38.7% |
| react/jsx-uses-vars | error | In ESLint | 132.4M | +38.7% |
| react/no-direct-mutation-state | error | In ESLint, Oxlint, Biome | 131.9M | +39.0% |
| react/no-find-dom-node | error | In ESLint, Oxlint | 131.2M | +39.1% |
| react/no-unescaped-entities | error | In ESLint, Oxlint | 131.2M | +39.1% |
| react/no-deprecated | error | In ESLint | 131.2M | +39.1% |
| eslint/no-caller | error | In ESLint, Oxlint, Biome | 100.4M | +97.3% |
| eslint/no-eval | error | In ESLint, Oxlint, Biome | 99.7M | +98.1% |
| eslint/no-useless-rename | error | In ESLint, Oxlint, Biome | 98.5M | +100.2% |
| react/no-unknown-property | error | In ESLint, Oxlint, Biome | 84.3M | +33.4% |
| typescript/no-invalid-void-type | error | In ESLint, Oxlint, Biome | 75.4M | +53.2% |
| typescript/adjacent-overload-signatures | error | In ESLint, Oxlint, Biome | 74.2M | +52.3% |
| typescript/prefer-function-type | error | In ESLint, Oxlint, Biome | 74.2M | +52.3% |
| eslint/no-iterator | error | In ESLint, Oxlint | 71.7M | +94.8% |
| typescript/no-useless-constructor | error | In ESLint, Biome | 51.9M | +26.1% |
| eslint/eqeqeq | error | In ESLint, Oxlint, Biome | 50.5M | +50.5% |
| typescript/consistent-type-assertions | error | In ESLint, Oxlint | 50.3M | +28.6% |
| eslint/no-self-compare | error | In ESLint, Oxlint, Biome | 50M | +51.2% |
| eslint/no-sequences | error | In ESLint, Oxlint, Biome | 50M | +51.2% |
| eslint/no-labels | error | In ESLint, Oxlint, Biome | 49.2M | +51.2% |
| eslint/no-lone-blocks | error | In ESLint, Oxlint, Biome | 49.2M | +51.2% |
| eslint/array-callback-return | error | In ESLint, Oxlint, Biome | 48.8M | +52.8% |
| eslint/no-template-curly-in-string | error | In ESLint, Oxlint, Biome | 48.8M | +52.8% |
| typescript/no-non-null-asserted-nullish-coalescing | error | In ESLint, Oxlint | 48.5M | +32.5% |
| typescript/unified-signatures | error | In ESLint, Oxlint, Biome | 47.8M | +32.3% |
| typescript/consistent-type-definitions | error | In ESLint, Oxlint, Biome | 47M | +31.5% |
| typescript/no-inferrable-types | error | In ESLint, Oxlint, Biome | 46.2M | +31.3% |
| typescript/prefer-for-of | error | In ESLint, Oxlint, Biome | 46.2M | +31.3% |
| typescript/class-literal-property-style | error | In ESLint, Oxlint | 46.2M | +31.3% |
| eslint/no-proto | error | In ESLint, Oxlint, Biome | 45.9M | +57.4% |
| eslint/no-undef-init | error | In ESLint, Biome | 45.8M | +57.5% |
| eslint/new-cap | error | In ESLint, Oxlint, Biome | 45.3M | +58.7% |
| eslint/default-case-last | error | In ESLint, Oxlint, Biome | 44.7M | +59.5% |
| eslint/prefer-regex-literals | error | In ESLint, Oxlint, Biome | 44.7M | +59.5% |
| eslint/prefer-arrow-callback | error | In ESLint, Oxlint, Biome | 41.8M | +63.5% |
| eslint/radix | error | In ESLint, Oxlint, Biome | 41.8M | +62.5% |
| eslint/no-constructor-return | error | In ESLint, Oxlint, Biome | 40.5M | +65.0% |
| eslint/no-inner-declarations | error | In ESLint, Oxlint, Biome | 40.4M | +65.1% |
| eslint/no-useless-call | error | In ESLint, Oxlint, Biome | 34.8M | +89.4% |
| react/jsx-no-useless-fragment | error | In ESLint, Oxlint, Biome | 33.4M | +89.5% |
| react/void-dom-elements-no-children | error | In ESLint, Oxlint, Biome | 33.4M | +89.5% |
| typescript/consistent-type-imports | error | In ESLint, Oxlint, Biome | 32.1M | +103.7% |
| typescript/no-empty-interface | error | In ESLint, Oxlint, Biome | 30.1M | +109.5% |
| eslint/no-new-wrappers | error | In ESLint, Oxlint, Biome | 22.6M | +12.7% |
| eslint/no-extend-native | error | In ESLint, Oxlint, Biome | 22.6M | +12.7% |
| eslint/no-extra-bind | error | In ESLint, Oxlint, Biome | 22.6M | +12.7% |
| eslint/no-new-func | error | In ESLint, Oxlint, Biome | 22M | +12.5% |
| eslint/no-multi-str | error | In ESLint, Oxlint, Biome | 21.4M | +13.0% |
| eslint/no-useless-computed-key | error | In ESLint, Oxlint, Biome | 20.8M | +12.8% |
| eslint/no-new-object | error | In ESLint, Biome | 19M | +5.4% |
| eslint/no-new | error | In ESLint, Oxlint, Biome | 17.9M | +14.5% |
| eslint/yoda | error | In ESLint, Oxlint, Biome | 17.9M | +14.5% |
| eslint/no-new-symbol | error | In ESLint, Biome | 17.7M | +5.2% |
| eslint/one-var | error | In ESLint, Oxlint, Biome | 17.3M | +15.2% |
| eslint/no-return-assign | error | In ESLint, Oxlint, Biome | 17.2M | +13.3% |
| eslint/no-void | error | In ESLint, Oxlint, Biome | 17.2M | +13.3% |
| eslint/prefer-promise-reject-errors | error | In ESLint, Oxlint, Biome | 16.8M | +15.7% |
| eslint/symbol-description | error | In ESLint, Oxlint, Biome | 16.7M | +15.1% |
| eslint/no-unreachable-loop | error | In ESLint, Oxlint | 16.7M | +15.1% |
| eslint/no-useless-concat | error | In ESLint, Oxlint, Biome | 16.6M | +11.1% |
| eslint/strict | error | In ESLint, Biome | 16.2M | +11.7% |
| eslint/spaced-comment | error | In ESLint | 13.7M | +5.4% |
| eslint/guard-for-in | error | In ESLint, Oxlint, Biome | 13.2M | +13.8% |
| eslint/grouped-accessor-pairs | error | In ESLint, Oxlint, Biome | 12.5M | +13.5% |
| eslint/prefer-object-spread | error | In ESLint, Oxlint, Biome | 12.5M | +13.5% |
| eslint/no-promise-executor-return | error | In ESLint, Oxlint, Biome | 12.5M | +13.5% |
| eslint/no-param-reassign | error | In ESLint, Oxlint, Biome | 12.1M | +14.3% |
| react/jsx-pascal-case | error | In ESLint, Oxlint | 7.5M | +3.6% |
| react/style-prop-object | error | In ESLint, Oxlint | 7.5M | +3.6% |
| react/no-typos | error | In ESLint | 7.5M | +3.6% |
| eslint/accessor-pairs | error | In ESLint, Oxlint, Biome | 6.8M | +40.1% |
| eslint/no-unmodified-loop-condition | error | In ESLint, Oxlint, Biome | 6.8M | +40.1% |
| react/self-closing-comp | error | In ESLint, Oxlint, Biome | 6.7M | +26.4% |
| react/jsx-fragments | error | In ESLint, Oxlint, Biome | 5.4M | +31.6% |
| react/no-did-update-set-state | error | In ESLint, Oxlint | 4.6M | +3.9% |
| react/no-unstable-nested-components | error | In ESLint, Oxlint | 4.6M | +3.9% |
| typescript/no-import-type-side-effects | error | In ESLint, Oxlint | 4.5M | +92.8% |
| react/jsx-curly-brace-presence | error | In ESLint, Oxlint, Biome | 3.4M | +2.6% |
| react/jsx-no-script-url | error | In ESLint, Oxlint, Biome | 3.4M | +2.6% |
| react/jsx-no-constructed-context-values | error | In ESLint, Oxlint | 3.4M | +2.6% |
| react/no-namespace | error | In ESLint, Oxlint | 3.4M | +2.6% |
| react/no-redundant-should-component-update | error | In ESLint, Oxlint | 3.4M | +2.6% |
| react/no-this-in-sfc | error | In ESLint, Oxlint | 3.4M | +2.6% |
| react/prefer-es6-class | error | In ESLint, Oxlint | 3.4M | +2.6% |
| react/static-property-placement | error | In ESLint | 3.4M | +2.6% |
| typescript/method-signature-style | error | In ESLint, Oxlint, Biome | 3.4M | +79.3% |
| eslint/max-nested-callbacks | error | In ESLint, Oxlint, Biome | 2.6M | +89.7% |
| eslint/complexity | error | In ESLint, Oxlint, Biome | 2.6M | +89.7% |
| eslint/no-eq-null | error | In ESLint, Oxlint, Biome | 2.5M | +94.8% |
| eslint/func-name-matching | error | In ESLint, Oxlint, Biome | 2.5M | +94.8% |
| typescript/no-loss-of-precision | error | In ESLint, Biome | 2.2M | +6.7% |
| typescript/explicit-member-accessibility | error | In ESLint, Oxlint, Biome | 2.1M | +148.2% |
| react/iframe-missing-sandbox | error | In ESLint, Oxlint, Biome | 2.1M | +148.2% |
| eslint/max-depth | error | In ESLint, Oxlint, Biome | 605.7K | +4.1% |
| eslint/max-params | error | In ESLint, Oxlint, Biome | 436.6K | −4.8% |
| eslint/no-implicit-coercion | error | In ESLint, Oxlint, Biome | 436.6K | −4.8% |
| react/no-unsafe | error | In ESLint, Oxlint | 30.1K | +27.2% |
| typescript/member-ordering | error | In ESLint | 30.1K | +27.2% |
| typescript/no-invalid-this | error | In ESLint | 30.1K | +27.2% |
| typescript/typedef | error | In ESLint | 30.1K | +27.2% |