Eslint 所有规则集合

Eslint 所有规则集合

"accessor-pairs": "off",
      "array-bracket-newline": "off",
      "array-bracket-spacing": "off",
      "array-callback-return": "off",
      "arrow-body-style": "off",
      "arrow-parens": "off",
      "arrow-spacing": "off",
      "block-scoped-var": "off",
      "block-spacing": "off",
      "brace-style": "off",
      "callback-return": "off",
      "camelcase": "off",
      "capitalized-comments": "off",
      "class-methods-use-this": "off",
      "comma-dangle": "off",
      "comma-spacing": "off",
      "comma-style": "off",
      "complexity": "off",
      "consistent-return": "off",
      "consistent-this": "off",
      "constructor-super": "off",
      "curly": "off",
      "default-case": "off",
      "default-case-last": "off",
      "default-param-last": "off",
      "dot-location": "off",
      "dot-notation": "off",
      "eqeqeq": "off",
      "for-direction": "off",
      "func-call-spacing": "off",
      "func-name-matching": "off",
      "func-names": "off",
      "func-style": "off",
      "function-call-argument-newline": "off",
      "function-paren-newline": "off",
      "generator-star-spacing": "off",
      "getter-return": "off",
      "global-require": "off",
      "guard-for-in": "off",
      "id-blacklist": "off",
      "id-length": "off",
      "id-match": "off",
      "implicit-arrow-linebreak": "off",
      "indent": "off",
      "indent-legacy": "off",
      "init-declarations": "off",
      "jsx-quotes": "off",
      "key-spacing": "off",
      "keyword-spacing": "off",
      "landscape": "off",
      "line-comment-position": "off",
      "linebreak-style": "off",
      "lines-around-comment": "off",
      "max-classes-per-file": "off",
      "max-depth": "off",
      "max-len": "off",
      "max-lines": "off",
      "max-lines-per-function": "off",
      "max-nested-callbacks": "off",
      "max-params": "off",
      "max-statements": "off",
      "max-statements-per-line": "off",
      "multiline-comment-style": "off",
      "multiline-ternary": "off",
      "new-cap": "off",
      "new-parens": "off",
      "newline-after-var": "off",
      "newline-before-return": "off",
      "newline-per-chained-call": "off",
      "no-alert": "off",
      "no-array-constructor": "off",
      "no-async-promise-executor": "off",
      "no-await-in-loop": "off",
      "no-bitwise": "off",
      "no-buffer-constructor": "off",
      "no-caller": "off",
      "no-case-declarations": "off",
      "no-catch-shadow": "off",
      "no-class-assign": "off",
      "no-compare-neg-zero": "off",
      "no-cond-assign": "off",
      "no-console": "off",
      "no-constant-condition": "off",
      "no-constructor-return": "off",
      "no-control-regex": "off",
      "no-debugger": "off",
      "no-delete-var": "off",
      "no-div-regex": "off",
      "no-dupe-args": "off",
      "no-dupe-keys": "off",
      "no-duplicate-case": "off",
      "no-else-return": "off",
      "no-empty": "off",
      "no-empty-character-class": "off",
      "no-empty-pattern": "off",
      "no-eq-null": "off",
      "no-eval": "off",
      "no-ex-assign": "off",
      "no-extend-native": "off",
      "no-extra-bind": "off",
      "no-extra-boolean-cast": "off",
      "no-extra-parens": "off",
      "no-fallthrough": "off",
      "no-floating-decimal": "off",
      "no-func-assign": "off",
      "no-global-assign": "off",
      "no-implicit-coercion": "off",
      "no-implicit-globals": "off",
      "no-implied-eval": "off",
      "no-inline-comments": "off",
      "no-inner-declarations": "off",
      "no-invalid-regexp": "off",
      "no-irregular-whitespace": "off",
      "no-iterator": "off",
      "no-labels": "off",
      "no-lone-blocks": "off",
      "no-loop-func": "off",
      "no-magic-numbers": "off",
      "no-misleading-character-class": "off",
      "no-mixed-operators": "off",
      "no-mixed-requires": "off",
      "no-new": "off",
      "no-new-func": "off",
      "no-new-object": "off",
      "no-new-require": "off",
      "no-nonoctal-decimal-escape": "off",
      "no-octal": "off",
      "no-octal-escape": "off",
      "no-param-reassign": "off",
      "no-plusplus": "off",
      "no-process-env": "off",
      "no-process-exit": "off",
      "no-promise-executor-return": "off",
      "no-proto": "off",
      "no-redeclare": "off",
      "no-regex-spaces": "off",
      "no-restricted-globals": "off",
      "no-restricted-imports": "off",
      "no-restricted-modules": "off",
      "no-return-assign": "off",
      "no-return-await": "off",
      "no-script-url": "off",
      "no-self-assign": "off",
      "no-self-compare": "off",
      "no-sequences": "off",
      "no-shadow": "off",
      "no-shadow-restricted-names": "off",
      "no-spaced-func": "off",
      "no-sparse-arrays": "off",
      "no-sync": "off",
      "no-tabs": "off",
      "no-template-curly-in-string": "off",
      "no-ternary": "off",
      "no-this-before-super": "off",
      "no-throw-literal": "off",
      "no-trailing-spaces": "off",
      "no-undef": "off",
      "no-undef-init": "off",
      "no-undefined": "off",
      "no-unexpected-multiline": "off",
      "no-unneeded-ternary": "off",
      "no-unreachable": "off",
      "no-unreachable-loop": "off",
      "no-unsafe-finally": "off",
      "no-unsafe-negation": "off",
      "no-unused-expressions": "off",
      "no-unused-vars": "off",
      "no-use-before-define": "off",
      "no-useless-call": "off",
      "no-useless-computed-key": "off",
      "no-useless-constructor": "off",
      "no-useless-escape": "off",
      "no-useless-rename": "off",
      "no-var": "off",
      "no-warning-comments": "off",
      "no-with": "off",
      "nonblock-statement-body-position": "off",
      "object-curly-newline": "off",
      "object-curly-spacing": "off",
      "object-property-newline": "off",
      "one-var": "off",
      "one-var-declaration-per-line": "off",
      "operator-assignment": "off",
      "operator-linebreak": "off",
      "padded-blocks": "off",
      "prefer-arrow-callback": "off",
      "prefer-const": "off",
      "prefer-destructuring": "off",
      "prefer-exponentiation-operator": "off",
      "prefer-numeric-literals": "off",
      "prefer-object-spread": "off",
      "prefer-promise-reject-errors": "off",
      "prefer-regex-literals": "off",
      "prefer-rest-params": "off",
      "prefer-spread": "off",
      "prefer-template": "off",
      "quote-props": "off",
      "quotes": "off",
      "radix": "off",
      "require-atomic-updates": "off",
      "require-await": "off",
      "require-unicode-regexp": "off",
      "require-yield": "off",
      "rest-spread-spacing": "off",
      "semi": "off",
      "semi-spacing": "off",
      "semi-style": "off",
      "sort-imports": "off",
      "sort-keys": "off",
      "sort-vars": "off",
      "space-before-blocks": "off",
      "space-before-function-paren": "off",
      "space-in-parens": "off",
      "space-infix-ops": "off",
      "space-unary-ops": "off",
      "spaced-comment": "off",
      "strict": "off",
      "switch-colon-spacing": "off",
      "symbol-description": "off",
      "template-curly-spacing": "off",
      "template-tag-spacing": "off",
      "unicode-bom": "off",
      "use-isnan": "off",
      "valid-typeof": "off",
      "vars-on-top": "off",
      "wrap-iife": "off",
      "wrap-regex": "off",
      "yield-star-spacing": "off",
      "yoda": "off",
      "eol-last": "off",
      "no-multiple-empty-lines": "off",
      "import/first": "off",
      "vue/no-parsing-error": "off",

https://github.com/eslint/eslint/tree/main/lib/rules 从这里也可以拿到所有规则

posted @ 2025-08-15 08:46  狂客  阅读(22)  评论(0)    收藏  举报