1 | module.exports = {
|
2 | "root":true,
|
3 | "env": {
|
4 | "es6": true,
|
5 | "browser": true,
|
6 | "commonjs": true,
|
7 | },
|
8 | "extends": [
|
9 | "eslint:recommended",
|
10 | ],
|
11 | "parserOptions": {
|
12 | "sourceType": "module"
|
13 | },
|
14 | "globals": {
|
15 | "BUNDLED": true,
|
16 | "VERSION": true,
|
17 | "ICONS": true
|
18 | },
|
19 | "rules": {
|
20 | "arrow-parens": ["error", "as-needed"],
|
21 | "brace-style": ["error", "1tbs", {"allowSingleLine": true}],
|
22 | "comma-dangle": ["error", "never"],
|
23 | "comma-spacing": "error",
|
24 | "comma-style": "error",
|
25 | "eqeqeq": ["error", "smart"],
|
26 | "eol-last": "error",
|
27 | "indent": "off",
|
28 | "indent-legacy": ["error", 4, {"SwitchCase": 1}],
|
29 | "key-spacing": "error",
|
30 | "keyword-spacing": "error",
|
31 | "linebreak-style": ["error", "unix"],
|
32 | "no-array-constructor": "error",
|
33 | "no-case-declarations": "warn",
|
34 | "no-console": "off",
|
35 | "no-duplicate-imports": "error",
|
36 | "no-empty": ["error", {"allowEmptyCatch": true}],
|
37 | "no-extend-native": "error",
|
38 | "no-lone-blocks": "error",
|
39 | "no-lonely-if": "error",
|
40 | "no-multi-spaces": "error",
|
41 | "no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1, "maxBOF": 0}],
|
42 | "no-template-curly-in-string": "error",
|
43 | "no-trailing-spaces": "error",
|
44 | "no-unused-vars": ["error", {"vars": "local", "args": "none"}],
|
45 | "no-var": "error",
|
46 | "object-curly-spacing": "error",
|
47 | "object-shorthand": "error",
|
48 | "prefer-const": ["error", {"destructuring": "all"}],
|
49 | "prefer-destructuring": "warn",
|
50 | "quotes": ["error", "single", {"avoidEscape": true}],
|
51 | "semi": ["error", "always"],
|
52 | "space-before-blocks": "error",
|
53 | "space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
|
54 | "space-in-parens": "error",
|
55 | "space-infix-ops": "error",
|
56 | "space-unary-ops": "error",
|
57 | "spaced-comment": "error",
|
58 | "template-curly-spacing": "error",
|
59 | }
|
60 | };
|