|
1 | 1 | { |
2 | | - "parserOptions": { |
3 | | - "ecmaVersion": 5 |
4 | | - }, |
| 2 | + "env": { "commonjs": true }, |
5 | 3 | "extends": "eslint:recommended", |
6 | | - "env": { |
7 | | - "commonjs": true |
8 | | - }, |
| 4 | + "parserOptions": { "ecmaVersion": 5 }, |
9 | 5 | "rules": { |
10 | | - "strict": [2, "global"], |
11 | | - "block-scoped-var": 2, |
12 | | - "consistent-return": 2, |
13 | | - "eqeqeq": [2, "smart"], |
14 | | - "guard-for-in": 2, |
15 | | - "no-caller": 2, |
16 | | - "no-extend-native": 2, |
17 | | - "no-loop-func": 2, |
18 | | - "no-new": 2, |
19 | | - "no-param-reassign": 2, |
20 | | - "no-return-assign": 2, |
21 | | - "no-unused-expressions": 2, |
22 | | - "no-use-before-define": 2, |
23 | | - "radix": [2, "always"], |
24 | | - "indent": [2, 2], |
25 | | - "quotes": [2, "double"], |
26 | | - "semi": [2, "always"] |
| 6 | + "block-scoped-var": "error", |
| 7 | + "consistent-return": "error", |
| 8 | + "eqeqeq": "error", |
| 9 | + "guard-for-in": "error", |
| 10 | + "no-bitwise": "error", |
| 11 | + "no-caller": "error", |
| 12 | + "no-extra-parens": "off", |
| 13 | + "no-extend-native": "error", |
| 14 | + "no-loop-func": "error", |
| 15 | + "no-new": "error", |
| 16 | + "no-param-reassign": "error", |
| 17 | + "no-return-assign": "error", |
| 18 | + "no-sequences": "error", |
| 19 | + "no-unused-expressions": "error", |
| 20 | + "no-use-before-define": "error", |
| 21 | + "no-undef": "error", |
| 22 | + "no-eq-null": "error", |
| 23 | + "radix": ["error", "always"], |
| 24 | + "indent": ["error", 2, { "SwitchCase": 1 }], |
| 25 | + "quotes": ["error", "double"], |
| 26 | + "semi": ["error", "always"], |
| 27 | + "strict": ["error", "global"] |
27 | 28 | } |
28 | 29 | } |
0 commit comments