|
1 | 1 | module.exports = { |
2 | | - "env": { |
3 | | - "commonjs": true, |
4 | | - "es6": true, |
5 | | - "node": true |
6 | | - }, |
7 | | - "extends": "airbnb-base", |
8 | | - "globals": { |
9 | | - "Atomics": "readonly", |
10 | | - "SharedArrayBuffer": "readonly" |
11 | | - }, |
12 | | - "parserOptions": { |
13 | | - "ecmaVersion": 2018 |
14 | | - }, |
15 | | - "rules": { |
16 | | - "camelcase": "off", |
17 | | - // "class-methods-use-this": "off", |
18 | | - "comma-dangle": ["error", { |
19 | | - "functions": "ignore", |
20 | | - "arrays": "always-multiline", |
21 | | - "objects": "always-multiline", |
22 | | - "imports": "always-multiline", |
23 | | - "exports": "always-multiline", |
24 | | - }], |
25 | | - // "consistent-return": "off", |
26 | | - // "dot-notation": "off", |
27 | | - "func-names": "off", |
28 | | - "global-require": "off", |
29 | | - // "guard-for-in": "off", |
30 | | - // "import/newline-after-import": "off", |
31 | | - "import/no-dynamic-require": "off", |
32 | | - // "import/order": "off", |
33 | | - "max-len": [ |
34 | | - "warn", |
35 | | - { |
36 | | - "code": 120, |
37 | | - "ignoreComments": false, |
38 | | - "ignoreRegExpLiterals": true, |
39 | | - "ignoreStrings": true, |
40 | | - "ignoreTemplateLiterals": true, |
41 | | - "ignoreTrailingComments": false, |
42 | | - "ignoreUrls": true, |
43 | | - "tabWidth": 2 |
44 | | - } |
45 | | - ], |
46 | | - // "new-cap": "off", |
47 | | - "newline-per-chained-call": "off", |
48 | | - // "no-bitwise": "off", |
49 | | - // "no-buffer-constructor": "off", |
50 | | - // "no-cond-assign": "off", |
51 | | - // "no-confusing-arrow": "off", |
52 | | - "no-console": "off", |
53 | | - // "no-dupe-keys": "off", |
54 | | - // "no-else-return": "off", |
55 | | - // "no-empty": "off", |
56 | | - // "no-empty-function": "off", |
57 | | - // "no-lonely-if": "off", |
58 | | - // "no-loop-func": "off", |
59 | | - // "no-mixed-operators": "off", |
60 | | - // "no-multi-assign": "off", |
61 | | - "no-param-reassign": "off", |
62 | | - "no-plusplus": "off", |
63 | | - "no-prototype-builtins": "off", |
64 | | - // "no-restricted-syntax": "off", |
65 | | - // "no-return-assign": "off", |
66 | | - // "no-shadow": "off", |
67 | | - "no-throw-literal": "off", |
68 | | - // "no-unreachable": "off", |
69 | | - "no-unused-vars": ["error", { |
70 | | - "args": "none", |
71 | | - "caughtErrors": "none" |
72 | | - }], |
73 | | - "no-trailing-spaces": ['error',{ |
74 | | - "skipBlankLines" : true |
75 | | - }], |
76 | | - "no-use-before-define": "off", |
77 | | - "no-useless-concat": "off", |
78 | | - "no-useless-constructor": "off", |
79 | | - "no-useless-escape": "off", |
80 | | - "no-var": "off", |
81 | | - "no-void": "off", |
82 | | - "object-curly-newline": [ |
83 | | - "error", |
84 | | - { |
85 | | - "consistent": true |
86 | | - } |
87 | | - ], |
88 | | - "object-shorthand": "off", |
89 | | - "one-var": "off", |
90 | | - "one-var-declaration-per-line": "off", |
91 | | - "operator-assignment": "off", |
92 | | - "prefer-arrow-callback": "off", |
93 | | - "prefer-const": "off", |
94 | | - "prefer-destructuring": "off", |
95 | | - "prefer-template": "off", |
96 | | - "quote-props": "off", |
97 | | - "quotes": "off", |
98 | | - "radix": "off", |
99 | | - "vars-on-top": "off", |
100 | | - "wrap-iife": "off" |
101 | | - } |
102 | | -} |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "commonjs": true, |
| 5 | + "es6": true |
| 6 | + }, |
| 7 | + "extends": "airbnb-base", |
| 8 | + "globals": { |
| 9 | + "Atomics": "readonly", |
| 10 | + "SharedArrayBuffer": "readonly" |
| 11 | + }, |
| 12 | + "parserOptions": { |
| 13 | + "ecmaVersion": 2018 |
| 14 | + }, |
| 15 | + "rules": { |
| 16 | + "arrow-body-style": "off", |
| 17 | + "arrow-spacing": "off", |
| 18 | + "arrow-parens": "off", |
| 19 | + "camelcase": "off", |
| 20 | + "class-methods-use-this": "off", |
| 21 | + "comma-dangle": "off", |
| 22 | + "comma-spacing": "off", |
| 23 | + "consistent-return": "off", |
| 24 | + "dot-notation": "off", |
| 25 | + "function-paren-newline": "off", |
| 26 | + "func-names": "off", |
| 27 | + "global-require": "off", |
| 28 | + "guard-for-in": "off", |
| 29 | + "indent": "off", |
| 30 | + "import/no-extraneous-dependencies": "off", |
| 31 | + "import/no-unresolved": "off", |
| 32 | + "import/newline-after-import": "off", |
| 33 | + "import/no-dynamic-require": "off", |
| 34 | + "import/order": "off", |
| 35 | + "max-len": "off", |
| 36 | + "new-cap": "off", |
| 37 | + "newline-per-chained-call": "off", |
| 38 | + "no-unused-expressions": "off", |
| 39 | + "no-useless-catch": "off", |
| 40 | + "no-underscore-dangle": "off", |
| 41 | + "no-bitwise": "off", |
| 42 | + "no-buffer-constructor": "off", |
| 43 | + "no-cond-assign": "off", |
| 44 | + "no-confusing-arrow": "off", |
| 45 | + "no-console": "off", |
| 46 | + "no-dupe-keys": "off", |
| 47 | + "no-else-return": "off", |
| 48 | + "no-empty": "off", |
| 49 | + "no-empty-function": "off", |
| 50 | + "no-lonely-if": "off", |
| 51 | + "no-loop-func": "off", |
| 52 | + "no-mixed-operators": "off", |
| 53 | + "no-multi-assign": "off", |
| 54 | + "no-param-reassign": "off", |
| 55 | + "no-plusplus": "off", |
| 56 | + "no-prototype-builtins": "off", |
| 57 | + "no-restricted-syntax": "off", |
| 58 | + "no-return-assign": "off", |
| 59 | + "no-shadow": "off", |
| 60 | + "no-throw-literal": "off", |
| 61 | + "no-unreachable": "off", |
| 62 | + "no-unused-vars": "off", |
| 63 | + "no-trailing-spaces": ['error',{ |
| 64 | + "skipBlankLines" : true |
| 65 | + }], |
| 66 | + "no-multiple-empty-lines": "off", |
| 67 | + "no-use-before-define": "off", |
| 68 | + "no-useless-concat": "off", |
| 69 | + "no-useless-constructor": "off", |
| 70 | + "no-useless-escape": "off", |
| 71 | + "no-var": "off", |
| 72 | + "no-void": "off", |
| 73 | + "object-curly-spacing": "off", |
| 74 | + "object-curly-newline": [ |
| 75 | + "error", |
| 76 | + { |
| 77 | + "consistent": true |
| 78 | + } |
| 79 | + ], |
| 80 | + "object-shorthand": "off", |
| 81 | + "one-var": "off", |
| 82 | + "one-var-declaration-per-line": "off", |
| 83 | + "operator-linebreak": "off", |
| 84 | + "operator-assignment": "off", |
| 85 | + "prefer-object-spread": "off", |
| 86 | + "prefer-arrow-callback": "off", |
| 87 | + "prefer-const": "off", |
| 88 | + "prefer-destructuring": "off", |
| 89 | + "prefer-template": "off", |
| 90 | + "quote-props": "off", |
| 91 | + "quotes": "off", |
| 92 | + "radix": "off", |
| 93 | + "semi": "off", |
| 94 | + "space-before-function-paren": 'off', |
| 95 | + "space-before-blocks": "off", |
| 96 | + "space-infix-ops": "off", |
| 97 | + "vars-on-top": "off", |
| 98 | + "wrap-iife": "off" |
| 99 | + } |
| 100 | +}; |
0 commit comments