| 1 | module.exports = { |
| 2 | "env": { |
| 3 | "browser": true, |
| 4 | "es6": true |
| 5 | }, |
| 6 | "extends": "eslint:recommended", |
| 7 | "rules": { |
| 8 | "accessor-pairs": "error", |
| 9 | "array-bracket-spacing": "off", |
| 10 | "array-callback-return": "error", |
| 11 | "arrow-body-style": "error", |
| 12 | "arrow-parens": "error", |
| 13 | "arrow-spacing": "error", |
| 14 | "block-scoped-var": "off", |
| 15 | "block-spacing": [ |
| 16 | "error", |
| 17 | "always" |
| 18 | ], |
| 19 | "brace-style": "off", |
| 20 | "callback-return": "error", |
| 21 | "camelcase": "off", |
| 22 | "capitalized-comments": "off", |
| 23 | "class-methods-use-this": "error", |
| 24 | "comma-dangle": "error", |
| 25 | "comma-spacing": "off", |
| 26 | "comma-style": [ |
| 27 | "error", |
| 28 | "last" |
| 29 | ], |
| 30 | "complexity": "off", |
| 31 | "computed-property-spacing": "off", |
| 32 | "consistent-return": "off", |
| 33 | "consistent-this": "off", |
| 34 | "curly": "off", |
| 35 | "default-case": "off", |
| 36 | "dot-location": [ |
| 37 | "error", |
| 38 | "property" |
| 39 | ], |
| 40 | "dot-notation": "off", |
| 41 | "eol-last": "error", |
| 42 | "eqeqeq": "off", |
| 43 | "func-call-spacing": "error", |
| 44 | "func-name-matching": "error", |
| 45 | "func-names": [ |
| 46 | "error", |
| 47 | "never" |
| 48 | ], |
| 49 | "func-style": "off", |
| 50 | "generator-star-spacing": "error", |
| 51 | "global-require": "error", |
| 52 | "guard-for-in": "off", |
| 53 | "handle-callback-err": "error", |
| 54 | "id-denylist": "error", |
| 55 | "id-length": "off", |
| 56 | "id-match": "error", |
| 57 | "indent": "off", |
| 58 | "init-declarations": "off", |
| 59 | "jsx-quotes": "error", |
| 60 | "key-spacing": "off", |
| 61 | "keyword-spacing": "off", |
| 62 | "line-comment-position": "off", |
| 63 | "linebreak-style": [ |
| 64 | "error", |
| 65 | "unix" |
| 66 | ], |
| 67 | "lines-around-comment": "off", |
| 68 | "lines-around-directive": "off", |
| 69 | "max-depth": "off", |
| 70 | "max-len": "off", |
| 71 | "max-lines": "off", |
| 72 | "max-nested-callbacks": "error", |
| 73 | "max-params": "off", |
| 74 | "max-statements": "off", |
| 75 | "max-statements-per-line": "off", |
| 76 | "multiline-ternary": "off", |
| 77 | "new-parens": "error", |
| 78 | "newline-after-var": "off", |
| 79 | "newline-before-return": "off", |
| 80 | "newline-per-chained-call": "off", |
| 81 | "no-alert": "off", |
| 82 | "no-array-constructor": "error", |
| 83 | "no-await-in-loop": "error", |
| 84 | "no-bitwise": "off", |
| 85 | "no-caller": "error", |
| 86 | "no-catch-shadow": "error", |
| 87 | "no-compare-neg-zero": "error", |
| 88 | "no-confusing-arrow": "error", |
| 89 | "no-continue": "off", |
| 90 | "no-div-regex": "error", |
| 91 | "no-duplicate-imports": "error", |
| 92 | "no-else-return": "off", |
| 93 | "no-empty-function": "off", |
| 94 | "no-eq-null": "off", |
| 95 | "no-eval": "off", |
| 96 | "no-extend-native": "error", |
| 97 | "no-extra-bind": "error", |
| 98 | "no-extra-label": "error", |
| 99 | "no-extra-parens": "off", |
| 100 | "no-floating-decimal": "error", |
| 101 | "no-implicit-globals": "off", |
| 102 | "no-implied-eval": "off", |
| 103 | "no-inline-comments": "off", |
| 104 | "no-inner-declarations": [ |
| 105 | "error", |
| 106 | "functions" |
| 107 | ], |
| 108 | "no-invalid-this": "error", |
| 109 | "no-iterator": "error", |
| 110 | "no-label-var": "error", |
| 111 | "no-labels": "error", |
| 112 | "no-lone-blocks": "error", |
| 113 | "no-lonely-if": "off", |
| 114 | "no-loop-func": "error", |
| 115 | "no-magic-numbers": "off", |
| 116 | "no-mixed-operators": "off", |
| 117 | "no-mixed-requires": "error", |
| 118 | "no-multi-assign": "off", |
| 119 | "no-multi-spaces": "off", |
| 120 | "no-multi-str": "error", |
| 121 | "no-multiple-empty-lines": "off", |
| 122 | "no-native-reassign": "error", |
| 123 | "no-negated-condition": "off", |
| 124 | "no-negated-in-lhs": "error", |
| 125 | "no-nested-ternary": "error", |
| 126 | "no-new": "error", |
| 127 | "no-new-func": "error", |
| 128 | "no-new-object": "error", |
| 129 | "no-new-require": "error", |
| 130 | "no-new-wrappers": "error", |
| 131 | "no-octal-escape": "error", |
| 132 | "no-param-reassign": "off", |
| 133 | "no-path-concat": "error", |
| 134 | "no-plusplus": "off", |
| 135 | "no-process-env": "error", |
| 136 | "no-process-exit": "error", |
| 137 | "no-proto": "error", |
| 138 | "no-prototype-builtins": "off", |
| 139 | "no-restricted-globals": "error", |
| 140 | "no-restricted-imports": "error", |
| 141 | "no-restricted-modules": "error", |
| 142 | "no-restricted-properties": "error", |
| 143 | "no-restricted-syntax": "error", |
| 144 | "no-return-assign": [ |
| 145 | "error", |
| 146 | "except-parens" |
| 147 | ], |
| 148 | "no-return-await": "error", |
| 149 | "no-script-url": "error", |
| 150 | "no-self-compare": "error", |
| 151 | "no-sequences": "error", |
| 152 | "no-shadow": "off", |
| 153 | "no-shadow-restricted-names": "error", |
| 154 | "no-spaced-func": "error", |
| 155 | "no-sync": "error", |
| 156 | "no-tabs": "off", |
| 157 | "no-template-curly-in-string": "error", |
| 158 | "no-ternary": "off", |
| 159 | "no-throw-literal": "off", |
| 160 | "no-trailing-spaces": "off", |
| 161 | "no-undef-init": "off", |
| 162 | "no-undefined": "off", |
| 163 | "no-underscore-dangle": "off", |
| 164 | "no-unmodified-loop-condition": "off", |
| 165 | "no-unneeded-ternary": "off", |
| 166 | "no-unused-expressions": "error", |
| 167 | "no-use-before-define": "off", |
| 168 | "no-useless-call": "error", |
| 169 | "no-useless-computed-key": "error", |
| 170 | "no-useless-concat": "off", |
| 171 | "no-useless-constructor": "error", |
| 172 | "no-useless-escape": "error", |
| 173 | "no-useless-rename": "error", |
| 174 | "no-useless-return": "off", |
| 175 | "no-var": "off", |
| 176 | "no-void": "error", |
| 177 | "no-warning-comments": "off", |
| 178 | "no-whitespace-before-property": "error", |
| 179 | "no-with": "error", |
| 180 | "nonblock-statement-body-position": [ |
| 181 | "error", |
| 182 | "any" |
| 183 | ], |
| 184 | "object-curly-newline": "off", |
| 185 | "object-curly-spacing": "off", |
| 186 | "object-property-newline": [ |
| 187 | "error", |
| 188 | { |
| 189 | "allowMultiplePropertiesPerLine": true |
| 190 | } |
| 191 | ], |
| 192 | "object-shorthand": "off", |
| 193 | "one-var": "off", |
| 194 | "one-var-declaration-per-line": "off", |
| 195 | "operator-assignment": "off", |
| 196 | "operator-linebreak": "off", |
| 197 | "padded-blocks": "off", |
| 198 | "prefer-arrow-callback": "off", |
| 199 | "prefer-const": "off", |
| 200 | "prefer-destructuring": [ |
| 201 | "error", |
| 202 | { |
| 203 | "array": false, |
| 204 | "object": false |
| 205 | } |
| 206 | ], |
| 207 | "prefer-numeric-literals": "error", |
| 208 | "prefer-promise-reject-errors": "error", |
| 209 | "prefer-reflect": "off", |
| 210 | "prefer-rest-params": "off", |
| 211 | "prefer-spread": "error", |
| 212 | "prefer-template": "off", |
| 213 | "quote-props": "off", |
| 214 | "quotes": [ |
| 215 | "error", |
| 216 | "single" |
| 217 | ], |
| 218 | "radix": [ |
| 219 | "error", |
| 220 | "as-needed" |
| 221 | ], |
| 222 | "require-await": "error", |
| 223 | "require-jsdoc": "off", |
| 224 | "rest-spread-spacing": "error", |
| 225 | "semi": "off", |
| 226 | "semi-spacing": "off", |
| 227 | "sort-imports": "error", |
| 228 | "sort-keys": "off", |
| 229 | "sort-vars": "off", |
| 230 | "space-before-blocks": "off", |
| 231 | "space-before-function-paren": "off", |
| 232 | "space-in-parens": "off", |
| 233 | "space-infix-ops": "off", |
| 234 | "space-unary-ops": "off", |
| 235 | "spaced-comment": "off", |
| 236 | "strict": "off", |
| 237 | "symbol-description": "error", |
| 238 | "template-curly-spacing": "error", |
| 239 | "template-tag-spacing": "error", |
| 240 | "unicode-bom": [ |
| 241 | "error", |
| 242 | "never" |
| 243 | ], |
| 244 | "valid-jsdoc": "off", |
| 245 | "vars-on-top": "off", |
| 246 | "wrap-iife": "error", |
| 247 | "wrap-regex": "off", |
| 248 | "yield-star-spacing": "error" |
| 249 | } |
| 250 | }; |