"use strict"; module.exports = { rules: { // Possible Problems "array-callback-return": ["error", { checkForEach: true }], "constructor-super": "error", "for-direction": "error", "getter-return": "error", "no-async-promise-executor": "error", "no-await-in-loop": "error", "no-class-assign": "error", "no-compare-neg-zero": "error", "no-cond-assign": ["error", "always"], "no-const-assign": "error", "no-constant-binary-expression": "error", "no-constant-condition": "error", "no-constructor-return": "error", "no-control-regex": "error", "no-debugger": "error", "no-dupe-args": "error", "no-dupe-class-members": "error", "no-dupe-else-if": "error", "no-dupe-keys": "error", "no-duplicate-case": "error", "no-duplicate-imports": "off", "no-empty-character-class": "error", "no-empty-pattern": "error", "no-ex-assign": "error", "no-fallthrough": "error", "no-func-assign": "error", "no-import-assign": "error", "no-inner-declarations": ["error", "both"], "no-invalid-regexp": "error", "no-irregular-whitespace": [ "error", { skipStrings: false, skipComments: false, skipRegExps: false, skipTemplates: false } ], "no-loss-of-precision": "error", "no-misleading-character-class": "error", "no-new-symbol": "error", "no-obj-calls": "error", "no-promise-executor-return": "error", "no-prototype-builtins": "error", "no-self-assign": "error", "no-self-compare": "error", "no-setter-return": "error", "no-sparse-arrays": "error", "no-template-curly-in-string": "error", "no-this-before-super": "error", "no-undef": "error", "no-unexpected-multiline": "off", "no-unmodified-loop-condition": "error", "no-unreachable": "error", "no-unreachable-loop": "error", "no-unsafe-finally": "error", "no-unsafe-negation": ["error", { enforceForOrderingRelations: true }], "no-unsafe-optional-chaining": [ "error", { disallowArithmeticOperators: true } ], "no-unused-private-class-members": "error", "no-unused-vars": [ "error", { args: "all", argsIgnorePattern: "^_", caughtErrors: "all" } ], "no-use-before-define": ["error", { functions: false }], "no-useless-backreference": "error", "require-atomic-updates": "error", "use-isnan": ["error", { enforceForIndexOf: true }], "valid-typeof": ["error", { requireStringLiterals: true }], // Suggestions "accessor-pairs": "error", "arrow-body-style": "error", "block-scoped-var": "error", "camelcase": ["error", { properties: "never" }], "capitalized-comments": "off", "class-methods-use-this": "error", "complexity": "off", "consistent-return": "error", "consistent-this": "off", "curly": "off", "default-case": "error", "default-case-last": "error", "default-param-last": "error", "dot-notation": "error", "eqeqeq": "error", "func-name-matching": ["error", { considerPropertyDescriptor: true }], "func-names": "error", "func-style": ["error", "declaration", { allowArrowFunctions: true }], "grouped-accessor-pairs": ["error", "getBeforeSet"], "guard-for-in": "error", "id-denylist": "off", "id-length": "off", "id-match": "off", "init-declarations": "error", "max-classes-per-file": "error", "max-depth": "off", "max-lines": "off", "max-lines-per-function": "off", "max-nested-callbacks": "off", "max-params": "off", "max-statements": "off", "multiline-comment-style": "off", "new-cap": ["error", { capIsNew: false }], "no-alert": "error", "no-array-constructor": "error", "no-bitwise": "error", "no-caller": "error", "no-case-declarations": "error", "no-confusing-arrow": "off", "no-console": "error", "no-continue": "error", "no-delete-var": "error", "no-div-regex": "error", "no-else-return": ["error", { allowElseIf: false }], "no-empty": "error", "no-empty-function": "error", "no-eq-null": "error", "no-eval": "error", "no-extend-native": "error", "no-extra-bind": "error", "no-extra-boolean-cast": ["error", { enforceForLogicalOperands: true }], "no-extra-label": "error", "no-extra-semi": "off", "no-floating-decimal": "off", "no-global-assign": "error", "no-implicit-coercion": "error", "no-implicit-globals": "error", "no-implied-eval": "error", "no-inline-comments": "off", "no-invalid-this": ["error", { capIsConstructor: false }], "no-iterator": "error", "no-label-var": "error", "no-labels": "error", "no-lone-blocks": "error", "no-lonely-if": "error", "no-loop-func": "error", "no-magic-numbers": "off", "no-mixed-operators": "off", "no-multi-assign": "error", "no-multi-str": "error", "no-negated-condition": "error", "no-nested-ternary": "off", "no-new": "error", "no-new-func": "error", "no-new-object": "error", "no-new-wrappers": "error", "no-nonoctal-decimal-escape": "error", "no-octal": "error", "no-octal-escape": "error", "no-param-reassign": "error", "no-plusplus": ["error", { allowForLoopAfterthoughts: true }], "no-proto": "error", "no-redeclare": "error", "no-regex-spaces": "error", "no-restricted-exports": "off", "no-restricted-globals": "off", "no-restricted-imports": "off", "no-restricted-properties": "off", "no-restricted-syntax": "off", "no-return-assign": ["error", "always"], "no-return-await": "error", "no-script-url": "error", "no-sequences": ["error", { allowInParentheses: false }], "no-shadow": [ "error", { builtinGlobals: true, ignoreOnInitialization: true } ], "no-shadow-restricted-names": "error", "no-ternary": "off", "no-throw-literal": "error", "no-undef-init": "error", "no-undefined": "off", "no-underscore-dangle": [ "error", { enforceInMethodNames: true, enforceInClassFields: true } ], "no-unneeded-ternary": ["error", { defaultAssignment: false }], "no-unused-expressions": ["error", { enforceForJSX: true }], "no-unused-labels": "error", "no-useless-call": "error", "no-useless-catch": "error", "no-useless-computed-key": ["error", { enforceForClassMembers: true }], "no-useless-concat": "error", "no-useless-constructor": "error", "no-useless-escape": "error", "no-useless-rename": "error", "no-useless-return": "error", "no-var": "error", "no-void": "error", "no-warning-comments": "warn", "no-with": "error", "object-shorthand": ["error", "properties", { avoidQuotes: true }], "one-var": ["error", "never"], "one-var-declaration-per-line": "off", "operator-assignment": "error", "prefer-arrow-callback": ["error", { allowUnboundThis: false }], "prefer-const": "error", "prefer-destructuring": [ "error", { object: true, array: false } ], "prefer-exponentiation-operator": "error", "prefer-named-capture-group": "error", "prefer-numeric-literals": "error", "prefer-object-has-own": "error", "prefer-object-spread": "error", "prefer-promise-reject-errors": "error", "prefer-regex-literals": ["error", { disallowRedundantWrapping: true }], "prefer-rest-params": "error", "prefer-spread": "error", "prefer-template": "error", "quote-props": "off", "radix": "error", "require-await": "error", "require-unicode-regexp": "error", "require-yield": "error", "sort-imports": "off", "sort-keys": "off", "sort-vars": "off", "spaced-comment": "off", "strict": "error", "symbol-description": "error", "vars-on-top": "off", "yoda": "error", // Layout & Formatting "array-bracket-newline": "off", "array-bracket-spacing": "off", "array-element-newline": "off", "arrow-parens": "off", "arrow-spacing": "off", "block-spacing": "off", "brace-style": "off", "comma-dangle": "off", "comma-spacing": "off", "comma-style": "off", "computed-property-spacing": "off", "dot-location": "off", "eol-last": "off", "func-call-spacing": "off", "function-call-argument-newline": "off", "function-paren-newline": "off", "generator-star-spacing": "off", "implicit-arrow-linebreak": "off", "indent": "off", "jsx-quotes": "off", "key-spacing": "off", "keyword-spacing": "off", "line-comment-position": "off", "linebreak-style": "off", "lines-around-comment": "off", "lines-between-class-members": "error", "max-len": "off", "max-statements-per-line": "error", "multiline-ternary": "off", "new-parens": "off", "newline-per-chained-call": "off", "no-extra-parens": "off", "no-mixed-spaces-and-tabs": "off", "no-multi-spaces": "off", "no-multiple-empty-lines": "off", "no-tabs": "off", "no-trailing-spaces": "off", "no-whitespace-before-property": "off", "nonblock-statement-body-position": "off", "object-curly-newline": "off", "object-curly-spacing": "off", "object-property-newline": "off", "operator-linebreak": "off", "padded-blocks": "off", "padding-line-between-statements": "off", "quotes": "off", "rest-spread-spacing": "off", "semi": "off", "semi-spacing": "off", "semi-style": "off", "space-before-blocks": "off", "space-before-function-paren": "off", "space-in-parens": "off", "space-infix-ops": "off", "space-unary-ops": "off", "switch-colon-spacing": "off", "template-curly-spacing": "off", "template-tag-spacing": "off", "unicode-bom": "off", "wrap-iife": "off", "wrap-regex": "off", "yield-star-spacing": "off", // Deprecated "callback-return": "off", "global-require": "off", "handle-callback-err": "off", "id-blacklist": "off", "indent-legacy": "off", "lines-around-directive": "off", "newline-after-var": "off", "newline-before-return": "off", "no-buffer-constructor": "off", "no-catch-shadow": "off", "no-mixed-requires": "off", "no-native-reassign": "off", "no-negated-in-lhs": "off", "no-new-require": "off", "no-path-concat": "off", "no-process-env": "off", "no-process-exit": "off", "no-restricted-modules": "off", "no-spaced-func": "off", "no-sync": "off", "prefer-reflect": "off", "require-jsdoc": "off", "valid-jsdoc": "off" } };