UNPKG

@lesnoypudge/eslint-base-config

Version:

lesnoypudge's eslint-base-config

497 lines (496 loc) 22.1 kB
{ "rules": { "accessor-pairs": "warn", "array-callback-return": "warn", "arrow-body-style": "warn", "block-scoped-var": "warn", "camelcase": "warn", "capitalized-comments": "warn", "class-methods-use-this": "warn", "complexity": "warn", "consistent-return": "warn", "consistent-this": "warn", "constructor-super": "warn", "curly": "warn", "default-case": "warn", "default-case-last": "warn", "default-param-last": "warn", "dot-notation": "warn", "eqeqeq": "warn", "for-direction": "warn", "func-name-matching": "warn", "func-names": "warn", "func-style": "warn", "getter-return": "warn", "grouped-accessor-pairs": "warn", "guard-for-in": "warn", "id-denylist": "warn", "id-length": "warn", "id-match": "warn", "init-declarations": "warn", "logical-assignment-operators": "warn", "max-classes-per-file": "warn", "max-depth": "warn", "max-lines": "warn", "max-lines-per-function": "warn", "max-nested-callbacks": "warn", "max-params": "warn", "max-statements": "warn", "new-cap": "warn", "no-alert": "warn", "no-array-constructor": "warn", "no-async-promise-executor": "warn", "no-await-in-loop": "warn", "no-bitwise": "warn", "no-caller": "warn", "no-case-declarations": "warn", "no-class-assign": "warn", "no-compare-neg-zero": "warn", "no-cond-assign": "warn", "no-console": "warn", "no-const-assign": "warn", "no-constant-binary-expression": "warn", "no-constant-condition": "warn", "no-constructor-return": "warn", "no-continue": "warn", "no-control-regex": "warn", "no-debugger": "warn", "no-delete-var": "warn", "no-div-regex": "warn", "no-dupe-args": "warn", "no-dupe-class-members": "warn", "no-dupe-else-if": "warn", "no-dupe-keys": "warn", "no-duplicate-case": "warn", "no-duplicate-imports": "warn", "no-else-return": "warn", "no-empty": "warn", "no-empty-character-class": "warn", "no-empty-function": "warn", "no-empty-pattern": "warn", "no-empty-static-block": "warn", "no-eq-null": "warn", "no-eval": "warn", "no-ex-assign": "warn", "no-extend-native": "warn", "no-extra-bind": "warn", "no-extra-boolean-cast": "warn", "no-extra-label": "warn", "no-fallthrough": "warn", "no-func-assign": "warn", "no-global-assign": "warn", "no-implicit-coercion": "warn", "no-implicit-globals": "warn", "no-implied-eval": "warn", "no-import-assign": "warn", "no-inline-comments": "warn", "no-inner-declarations": "warn", "no-invalid-regexp": "warn", "no-invalid-this": "warn", "no-irregular-whitespace": "warn", "no-iterator": "warn", "no-label-var": "warn", "no-labels": "warn", "no-lone-blocks": "warn", "no-lonely-if": "warn", "no-loop-func": "warn", "no-loss-of-precision": "warn", "no-magic-numbers": "warn", "no-misleading-character-class": "warn", "no-multi-assign": "warn", "no-multi-str": "warn", "no-negated-condition": "warn", "no-nested-ternary": "warn", "no-new": "warn", "no-new-func": "warn", "no-new-native-nonconstructor": "warn", "no-new-wrappers": "warn", "no-nonoctal-decimal-escape": "warn", "no-obj-calls": "warn", "no-object-constructor": "warn", "no-octal": "warn", "no-octal-escape": "warn", "no-param-reassign": "warn", "no-plusplus": "warn", "no-promise-executor-return": "warn", "no-proto": "warn", "no-prototype-builtins": "warn", "no-redeclare": "warn", "no-regex-spaces": "warn", "no-restricted-exports": "warn", "no-restricted-globals": "warn", "no-restricted-imports": "warn", "no-restricted-properties": "warn", "no-restricted-syntax": "warn", "no-return-assign": "warn", "no-script-url": "warn", "no-self-assign": "warn", "no-self-compare": "warn", "no-sequences": "warn", "no-setter-return": "warn", "no-shadow": "warn", "no-shadow-restricted-names": "warn", "no-sparse-arrays": "warn", "no-template-curly-in-string": "warn", "no-ternary": "warn", "no-this-before-super": "warn", "no-throw-literal": "warn", "no-undef": "warn", "no-undef-init": "warn", "no-undefined": "warn", "no-underscore-dangle": "warn", "no-unexpected-multiline": "warn", "no-unmodified-loop-condition": "warn", "no-unneeded-ternary": "warn", "no-unreachable": "warn", "no-unreachable-loop": "warn", "no-unsafe-finally": "warn", "no-unsafe-negation": "warn", "no-unsafe-optional-chaining": "warn", "no-unused-expressions": "warn", "no-unused-labels": "warn", "no-unused-private-class-members": "warn", "no-unused-vars": "warn", "no-use-before-define": "warn", "no-useless-assignment": "warn", "no-useless-backreference": "warn", "no-useless-call": "warn", "no-useless-catch": "warn", "no-useless-computed-key": "warn", "no-useless-concat": "warn", "no-useless-constructor": "warn", "no-useless-escape": "warn", "no-useless-rename": "warn", "no-useless-return": "warn", "no-var": "warn", "no-void": "warn", "no-warning-comments": "warn", "no-with": "warn", "object-shorthand": "warn", "one-var": "warn", "operator-assignment": "warn", "prefer-arrow-callback": "warn", "prefer-const": "warn", "prefer-destructuring": "warn", "prefer-exponentiation-operator": "warn", "prefer-named-capture-group": "warn", "prefer-numeric-literals": "warn", "prefer-object-has-own": "warn", "prefer-object-spread": "warn", "prefer-promise-reject-errors": "warn", "prefer-regex-literals": "warn", "prefer-rest-params": "warn", "prefer-spread": "warn", "prefer-template": "warn", "radix": "warn", "require-atomic-updates": "warn", "require-await": "warn", "require-unicode-regexp": "warn", "require-yield": "warn", "sort-imports": "warn", "sort-keys": "warn", "sort-vars": "warn", "strict": "warn", "symbol-description": "warn", "unicode-bom": "warn", "use-isnan": "warn", "valid-typeof": "warn", "vars-on-top": "warn", "yoda": "warn", "no-new-symbol": "warn", "@typescript-eslint/adjacent-overload-signatures": "warn", "@typescript-eslint/array-type": "warn", "@typescript-eslint/await-thenable": "warn", "@typescript-eslint/ban-ts-comment": "warn", "@typescript-eslint/ban-tslint-comment": "warn", "@typescript-eslint/ban-types": "warn", "@typescript-eslint/class-literal-property-style": "warn", "@typescript-eslint/class-methods-use-this": "warn", "@typescript-eslint/consistent-generic-constructors": "warn", "@typescript-eslint/consistent-indexed-object-style": "warn", "@typescript-eslint/consistent-return": "warn", "@typescript-eslint/consistent-type-assertions": "warn", "@typescript-eslint/consistent-type-definitions": "warn", "@typescript-eslint/consistent-type-exports": "warn", "@typescript-eslint/consistent-type-imports": "warn", "@typescript-eslint/default-param-last": "warn", "@typescript-eslint/dot-notation": "warn", "@typescript-eslint/explicit-function-return-type": "warn", "@typescript-eslint/explicit-member-accessibility": "warn", "@typescript-eslint/explicit-module-boundary-types": "warn", "@typescript-eslint/init-declarations": "warn", "@typescript-eslint/max-params": "warn", "@typescript-eslint/member-ordering": "warn", "@typescript-eslint/method-signature-style": "warn", "@typescript-eslint/naming-convention": "warn", "@typescript-eslint/no-array-constructor": "warn", "@typescript-eslint/no-array-delete": "warn", "@typescript-eslint/no-base-to-string": "warn", "@typescript-eslint/no-confusing-non-null-assertion": "warn", "@typescript-eslint/no-confusing-void-expression": "warn", "@typescript-eslint/no-dupe-class-members": "warn", "@typescript-eslint/no-duplicate-enum-values": "warn", "@typescript-eslint/no-duplicate-type-constituents": "warn", "@typescript-eslint/no-dynamic-delete": "warn", "@typescript-eslint/no-empty-function": "warn", "@typescript-eslint/no-empty-interface": "warn", "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-extra-non-null-assertion": "warn", "@typescript-eslint/no-extraneous-class": "warn", "@typescript-eslint/no-floating-promises": "warn", "@typescript-eslint/no-for-in-array": "warn", "@typescript-eslint/no-implied-eval": "warn", "@typescript-eslint/no-import-type-side-effects": "warn", "@typescript-eslint/no-inferrable-types": "warn", "@typescript-eslint/no-invalid-this": "warn", "@typescript-eslint/no-invalid-void-type": "warn", "@typescript-eslint/no-loop-func": "warn", "@typescript-eslint/no-loss-of-precision": "warn", "@typescript-eslint/no-magic-numbers": "warn", "@typescript-eslint/no-meaningless-void-operator": "warn", "@typescript-eslint/no-misused-new": "warn", "@typescript-eslint/no-misused-promises": "warn", "@typescript-eslint/no-mixed-enums": "warn", "@typescript-eslint/no-namespace": "warn", "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "warn", "@typescript-eslint/no-non-null-asserted-optional-chain": "warn", "@typescript-eslint/no-non-null-assertion": "warn", "@typescript-eslint/no-redeclare": "warn", "@typescript-eslint/no-redundant-type-constituents": "warn", "@typescript-eslint/no-require-imports": "warn", "@typescript-eslint/no-restricted-imports": "warn", "@typescript-eslint/no-shadow": "warn", "@typescript-eslint/no-this-alias": "warn", "@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn", "@typescript-eslint/no-unnecessary-condition": "warn", "@typescript-eslint/no-unnecessary-qualifier": "warn", "@typescript-eslint/no-unnecessary-type-arguments": "warn", "@typescript-eslint/no-unnecessary-type-assertion": "warn", "@typescript-eslint/no-unnecessary-type-constraint": "warn", "@typescript-eslint/no-unsafe-argument": "warn", "@typescript-eslint/no-unsafe-assignment": "warn", "@typescript-eslint/no-unsafe-call": "warn", "@typescript-eslint/no-unsafe-declaration-merging": "warn", "@typescript-eslint/no-unsafe-enum-comparison": "warn", "@typescript-eslint/no-unsafe-member-access": "warn", "@typescript-eslint/no-unsafe-return": "warn", "@typescript-eslint/no-unsafe-unary-minus": "warn", "@typescript-eslint/no-unused-expressions": "warn", "@typescript-eslint/no-unused-vars": "warn", "@typescript-eslint/no-use-before-define": "warn", "@typescript-eslint/no-useless-constructor": "warn", "@typescript-eslint/no-useless-empty-export": "warn", "@typescript-eslint/no-useless-template-literals": "warn", "@typescript-eslint/no-var-requires": "warn", "@typescript-eslint/non-nullable-type-assertion-style": "warn", "@typescript-eslint/only-throw-error": "warn", "@typescript-eslint/parameter-properties": "warn", "@typescript-eslint/prefer-as-const": "warn", "@typescript-eslint/prefer-destructuring": "warn", "@typescript-eslint/prefer-enum-initializers": "warn", "@typescript-eslint/prefer-find": "warn", "@typescript-eslint/prefer-for-of": "warn", "@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-includes": "warn", "@typescript-eslint/prefer-literal-enum-member": "warn", "@typescript-eslint/prefer-namespace-keyword": "warn", "@typescript-eslint/prefer-nullish-coalescing": "warn", "@typescript-eslint/prefer-optional-chain": "warn", "@typescript-eslint/prefer-promise-reject-errors": "warn", "@typescript-eslint/prefer-readonly": "warn", "@typescript-eslint/prefer-readonly-parameter-types": "warn", "@typescript-eslint/prefer-reduce-type-parameter": "warn", "@typescript-eslint/prefer-regexp-exec": "warn", "@typescript-eslint/prefer-return-this-type": "warn", "@typescript-eslint/prefer-string-starts-ends-with": "warn", "@typescript-eslint/prefer-ts-expect-error": "warn", "@typescript-eslint/promise-function-async": "warn", "@typescript-eslint/require-array-sort-compare": "warn", "@typescript-eslint/require-await": "warn", "@typescript-eslint/restrict-plus-operands": "warn", "@typescript-eslint/restrict-template-expressions": "warn", "no-return-await": "warn", "@typescript-eslint/return-await": "warn", "@typescript-eslint/sort-type-constituents": "warn", "@typescript-eslint/strict-boolean-expressions": "warn", "@typescript-eslint/switch-exhaustiveness-check": "warn", "@typescript-eslint/triple-slash-reference": "warn", "@typescript-eslint/typedef": "warn", "@typescript-eslint/unbound-method": "warn", "@typescript-eslint/unified-signatures": "warn", "@typescript-eslint/use-unknown-in-catch-callback-variable": "warn", "array-bracket-newline": "warn", "array-bracket-spacing": "warn", "array-element-newline": "warn", "arrow-parens": "warn", "arrow-spacing": "warn", "block-spacing": "warn", "brace-style": "warn", "comma-dangle": "warn", "comma-spacing": "warn", "comma-style": "warn", "computed-property-spacing": "warn", "dot-location": "warn", "eol-last": "warn", "func-call-spacing": "warn", "function-call-argument-newline": "warn", "function-paren-newline": "warn", "generator-star-spacing": "warn", "implicit-arrow-linebreak": "warn", "indent": "warn", "jsx-quotes": "warn", "key-spacing": "warn", "keyword-spacing": "warn", "linebreak-style": "warn", "lines-around-comment": "warn", "lines-between-class-members": "warn", "max-len": "warn", "max-statements-per-line": "warn", "multiline-ternary": "warn", "new-parens": "warn", "newline-per-chained-call": "warn", "no-confusing-arrow": "warn", "no-extra-parens": "warn", "no-extra-semi": "warn", "no-floating-decimal": "warn", "no-mixed-operators": "warn", "no-mixed-spaces-and-tabs": "warn", "no-multi-spaces": "warn", "no-multiple-empty-lines": "warn", "no-tabs": "warn", "no-trailing-spaces": "warn", "no-whitespace-before-property": "warn", "nonblock-statement-body-position": "warn", "object-curly-newline": "warn", "object-curly-spacing": "warn", "object-property-newline": "warn", "one-var-declaration-per-line": "warn", "operator-linebreak": "warn", "padded-blocks": "warn", "padding-line-between-statements": "warn", "quote-props": "warn", "quotes": "warn", "rest-spread-spacing": "warn", "semi": "warn", "semi-spacing": "warn", "semi-style": "warn", "space-before-blocks": "warn", "space-before-function-paren": "warn", "space-in-parens": "warn", "space-infix-ops": "warn", "space-unary-ops": "warn", "spaced-comment": "warn", "switch-colon-spacing": "warn", "template-curly-spacing": "warn", "template-tag-spacing": "warn", "wrap-iife": "warn", "wrap-regex": "warn", "yield-star-spacing": "warn", "@typescript-eslint/block-spacing": "warn", "@typescript-eslint/brace-style": "warn", "@typescript-eslint/comma-dangle": "warn", "@typescript-eslint/comma-spacing": "warn", "@typescript-eslint/func-call-spacing": "warn", "@typescript-eslint/indent": "warn", "@typescript-eslint/key-spacing": "warn", "@typescript-eslint/keyword-spacing": "warn", "@typescript-eslint/lines-around-comment": "warn", "@typescript-eslint/lines-between-class-members": "warn", "@typescript-eslint/member-delimiter-style": "warn", "@typescript-eslint/no-extra-parens": "warn", "@typescript-eslint/no-extra-semi": "warn", "@typescript-eslint/object-curly-spacing": "warn", "@typescript-eslint/padding-line-between-statements": "warn", "@typescript-eslint/quotes": "warn", "@typescript-eslint/semi": "warn", "@typescript-eslint/space-before-blocks": "warn", "@typescript-eslint/space-before-function-paren": "warn", "@typescript-eslint/space-infix-ops": "warn", "@typescript-eslint/type-annotation-spacing": "warn", "react/jsx-child-element-spacing": "warn", "react/jsx-closing-bracket-location": "warn", "react/jsx-closing-tag-location": "warn", "react/jsx-curly-brace-presence": "warn", "react/jsx-curly-newline": "warn", "react/jsx-curly-spacing": "warn", "react/jsx-equals-spacing": "warn", "react/jsx-first-prop-new-line": "warn", "react/jsx-indent": "warn", "react/jsx-indent-props": "warn", "react/jsx-max-props-per-line": "warn", "react/jsx-newline": "warn", "react/jsx-one-expression-per-line": "warn", "react/jsx-props-no-multi-spaces": "warn", "react/jsx-self-closing-comp": "warn", "react/jsx-sort-props": "warn", "react/jsx-tag-spacing": "warn", "react/jsx-wrap-multilines": "warn", "@stylistic/array-bracket-newline": "warn", "@stylistic/array-bracket-spacing": "warn", "@stylistic/array-element-newline": "warn", "@stylistic/arrow-parens": "warn", "@stylistic/arrow-spacing": "warn", "@stylistic/block-spacing": "warn", "@stylistic/brace-style": "warn", "@stylistic/comma-dangle": "warn", "@stylistic/comma-spacing": "warn", "@stylistic/comma-style": "warn", "@stylistic/computed-property-spacing": "warn", "@stylistic/dot-location": "warn", "@stylistic/eol-last": "warn", "@stylistic/function-call-argument-newline": "warn", "@stylistic/function-call-spacing": "warn", "@stylistic/function-paren-newline": "warn", "@stylistic/generator-star-spacing": "warn", "@stylistic/implicit-arrow-linebreak": "warn", "@stylistic/indent": "warn", "@stylistic/key-spacing": "warn", "@stylistic/keyword-spacing": "warn", "@stylistic/linebreak-style": "warn", "@stylistic/lines-around-comment": "warn", "@stylistic/lines-between-class-members": "warn", "@stylistic/multiline-comment-style": "warn", "@stylistic/multiline-ternary": "warn", "@stylistic/new-parens": "warn", "@stylistic/newline-per-chained-call": "warn", "@stylistic/no-confusing-arrow": "warn", "@stylistic/no-extra-parens": "warn", "@stylistic/no-extra-semi": "warn", "@stylistic/no-floating-decimal": "warn", "@stylistic/no-multi-spaces": "warn", "@stylistic/no-multiple-empty-lines": "warn", "@stylistic/no-trailing-spaces": "warn", "@stylistic/no-whitespace-before-property": "warn", "@stylistic/nonblock-statement-body-position": "warn", "@stylistic/object-curly-newline": "warn", "@stylistic/object-curly-spacing": "warn", "@stylistic/object-property-newline": "warn", "@stylistic/one-var-declaration-per-line": "warn", "@stylistic/operator-linebreak": "warn", "@stylistic/padded-blocks": "warn", "@stylistic/padding-line-between-statements": "warn", "@stylistic/quote-props": "warn", "@stylistic/quotes": "warn", "@stylistic/rest-spread-spacing": "warn", "@stylistic/semi": "warn", "@stylistic/semi-spacing": "warn", "@stylistic/semi-style": "warn", "@stylistic/space-before-blocks": "warn", "@stylistic/space-before-function-paren": "warn", "@stylistic/space-in-parens": "warn", "@stylistic/space-infix-ops": "warn", "@stylistic/space-unary-ops": "warn", "@stylistic/spaced-comment": "warn", "@stylistic/switch-colon-spacing": "warn", "@stylistic/template-curly-spacing": "warn", "@stylistic/template-tag-spacing": "warn", "@stylistic/wrap-iife": "warn", "@stylistic/wrap-regex": "warn", "@stylistic/yield-star-spacing": "warn", "@stylistic/member-delimiter-style": "warn", "@stylistic/type-annotation-spacing": "warn", "@stylistic/indent-binary-ops": "warn", "@stylistic/type-generic-spacing": "warn", "@stylistic/type-named-tuple-spacing": "warn" } }