|
6 | 6 | "browser": true |
7 | 7 | }, |
8 | 8 | "parserOptions": { |
9 | | - "ecmaVersion": 2018, |
| 9 | + "ecmaVersion": 2020, |
10 | 10 | "sourceType": "module" |
11 | 11 | }, |
12 | 12 | "extends": [ |
13 | 13 | "eslint:recommended" |
14 | 14 | ], |
15 | 15 | "plugins": ["import"], |
16 | 16 | "rules": { |
17 | | - "array-bracket-spacing": ["error", "never"], |
18 | | - "arrow-parens": ["error", "always"], |
19 | | - "block-spacing": ["error", "always"], |
20 | | - "brace-style": ["error", "1tbs"], |
21 | | - "comma-dangle": ["error", "never"], |
22 | | - "import/no-unresolved": ["error", { "commonjs": true }], |
23 | | - "import/extensions": ["error", "always", { "js": "never", "mjs": "never" }], |
24 | | - "import/newline-after-import": ["error", { "count": 2 }], |
25 | | - "indent": ["error", 2], |
26 | | - "linebreak-style": ["error", "unix"], |
27 | | - "no-trailing-spaces": "error", |
| 17 | + "array-bracket-newline": ["error", "consistent"], |
| 18 | + "array-bracket-spacing": "error", |
| 19 | + "array-callback-return": "error", |
| 20 | + "arrow-parens": "error", |
| 21 | + "arrow-spacing": "error", |
| 22 | + "block-scoped-var": "error", |
| 23 | + "block-spacing": "error", |
| 24 | + "brace-style": "error", |
| 25 | + "class-methods-use-this": "error", |
| 26 | + "comma-dangle": "error", |
| 27 | + "comma-spacing": "error", |
| 28 | + "comma-style": "error", |
| 29 | + "curly": "error", |
| 30 | + "default-case": "error", |
| 31 | + "default-case-last": "error", |
| 32 | + "default-param-last": "error", |
| 33 | + "dot-location": ["error", "property"], |
| 34 | + "dot-notation": "error", |
| 35 | + "eol-last": "error", |
| 36 | + "eqeqeq": "error", |
| 37 | + "func-call-spacing": "error", |
| 38 | + "func-name-matching": "error", |
| 39 | + "func-style": "error", |
| 40 | + "function-call-argument-newline": ["error", "consistent"], |
| 41 | + "function-paren-newline": "error", |
| 42 | + "generator-star-spacing": ["error", { "before": false, "after": true }], |
| 43 | + "grouped-accessor-pairs": "error", |
| 44 | + "id-denylist": "error", |
| 45 | + "id-match": "error", |
| 46 | + "implicit-arrow-linebreak": "error", |
| 47 | + "indent": ["error", 2, { "ignoreComments": true, "SwitchCase": 1 }], |
| 48 | + "key-spacing": "error", |
| 49 | + "keyword-spacing": "error", |
| 50 | + "linebreak-style": "error", |
| 51 | + "lines-between-class-members": "error", |
| 52 | + "logical-assignment-operators": "error", |
| 53 | + "max-classes-per-file": "error", |
| 54 | + "max-len": ["warn", { "code": 160, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }], |
| 55 | + "new-parens": "error", |
| 56 | + "newline-per-chained-call": "error", |
| 57 | + "no-alert": "error", |
| 58 | + "no-array-constructor": "error", |
| 59 | + "no-bitwise": "error", |
| 60 | + "no-caller": "error", |
| 61 | + "no-console": "error", |
| 62 | + "no-constant-binary-expression": "error", |
| 63 | + "no-constructor-return": "error", |
| 64 | + "no-div-regex": "error", |
| 65 | + "no-duplicate-imports": "error", |
| 66 | + "no-empty-function": "error", |
| 67 | + "no-empty-static-block": "error", |
| 68 | + "no-eq-null": "error", |
| 69 | + "no-eval": "error", |
| 70 | + "no-extend-native": "error", |
| 71 | + "no-extra-bind": "error", |
| 72 | + "no-extra-label": "error", |
| 73 | + "no-extra-parens": ["error", "all", { "nestedBinaryExpressions": false }], |
| 74 | + "no-floating-decimal": "error", |
| 75 | + "no-implicit-coercion": "error", |
| 76 | + "no-implicit-globals": "error", |
| 77 | + "no-implied-eval": "error", |
| 78 | + "no-invalid-this": "error", |
| 79 | + "no-iterator": "error", |
| 80 | + "no-label-var": "error", |
| 81 | + "no-labels": "error", |
| 82 | + "no-lone-blocks": "error", |
| 83 | + "no-lonely-if": "error", |
| 84 | + "no-loop-func": "error", |
| 85 | + "no-multi-assign": "error", |
| 86 | + "no-multi-spaces": "error", |
| 87 | + "no-multi-str": "error", |
| 88 | + "no-multiple-empty-lines": "error", |
| 89 | + "no-negated-condition": "error", |
| 90 | + "no-nested-ternary": "error", |
| 91 | + "no-new": "error", |
| 92 | + "no-new-func": "error", |
| 93 | + "no-new-native-nonconstructor": "error", |
| 94 | + "no-new-object": "error", |
| 95 | + "no-new-wrappers": "error", |
| 96 | + "no-octal-escape": "error", |
| 97 | + "no-promise-executor-return": "error", |
| 98 | + "no-proto": "error", |
| 99 | + "no-restricted-exports": "error", |
| 100 | + "no-restricted-globals": "error", |
| 101 | + "no-restricted-imports": "error", |
| 102 | + "no-restricted-properties": "error", |
| 103 | + "no-restricted-syntax": "error", |
| 104 | + "no-return-assign": "error", |
| 105 | + "no-return-await": "error", |
| 106 | + "no-script-url": "error", |
| 107 | + "no-self-compare": "error", |
| 108 | + "no-sequences": "error", |
28 | 109 | "no-tabs": "error", |
| 110 | + "no-template-curly-in-string": "error", |
| 111 | + "no-throw-literal": "error", |
| 112 | + "no-trailing-spaces": "error", |
| 113 | + "no-undef-init": "error", |
| 114 | + "no-unmodified-loop-condition": "error", |
| 115 | + "no-unneeded-ternary": "error", |
| 116 | + "no-unreachable-loop": "error", |
| 117 | + "no-unused-private-class-members": "error", |
29 | 118 | "no-unused-vars": ["error", { "argsIgnorePattern": "_.*" }], |
| 119 | + "no-useless-call": "error", |
| 120 | + "no-useless-computed-key": "error", |
| 121 | + "no-useless-concat": "error", |
| 122 | + "no-useless-constructor": "error", |
| 123 | + "no-useless-rename": "error", |
| 124 | + "no-useless-return": "error", |
| 125 | + "no-var": "error", |
| 126 | + "no-void": "error", |
| 127 | + "no-whitespace-before-property": "error", |
| 128 | + "nonblock-statement-body-position": "error", |
| 129 | + "object-curly-newline": "error", |
30 | 130 | "object-curly-spacing": ["error", "always"], |
| 131 | + "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }], |
| 132 | + "operator-linebreak": ["error", "before"], |
| 133 | + "padded-blocks": ["error", "never"], |
| 134 | + "padding-line-between-statements": "error", |
| 135 | + "prefer-arrow-callback": "error", |
| 136 | + "prefer-const": ["error", { "destructuring": "all" }], |
| 137 | + "prefer-exponentiation-operator": "error", |
| 138 | + "prefer-numeric-literals": "error", |
| 139 | + "prefer-object-has-own": "error", |
| 140 | + "prefer-object-spread": "error", |
| 141 | + "prefer-promise-reject-errors": "error", |
| 142 | + "prefer-rest-params": "error", |
| 143 | + "prefer-spread": "error", |
31 | 144 | "quotes": ["error", "double", { "allowTemplateLiterals": true }], |
32 | | - "semi": ["error", "always"] |
| 145 | + "radix": "error", |
| 146 | + "require-await": "error", |
| 147 | + "rest-spread-spacing": "error", |
| 148 | + "semi": "error", |
| 149 | + "semi-spacing": "error", |
| 150 | + "semi-style": "error", |
| 151 | + "space-before-blocks": "error", |
| 152 | + "space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }], |
| 153 | + "space-in-parens": "error", |
| 154 | + "space-infix-ops": "error", |
| 155 | + "space-unary-ops": "error", |
| 156 | + "strict": "error", |
| 157 | + "switch-colon-spacing": "error", |
| 158 | + "symbol-description": "error", |
| 159 | + "template-curly-spacing": "error", |
| 160 | + "template-tag-spacing": "error", |
| 161 | + "unicode-bom": "error", |
| 162 | + "wrap-iife": "error", |
| 163 | + "yield-star-spacing": "error", |
| 164 | + "yoda": "error", |
| 165 | + "import/no-duplicates": "error", |
| 166 | + "import/no-unresolved": ["error", { "commonjs": true }], |
| 167 | + "import/extensions": ["error", "always", { "js": "ignorePackages" }], |
| 168 | + "import/newline-after-import": ["error", { "count": 2 }] |
33 | 169 | }, |
34 | 170 | "settings": { |
35 | 171 | "import/resolver": "node" |
|
0 commit comments