|
1 | 1 | { |
2 | 2 | "env": { |
3 | | - "browser": true, |
4 | 3 | "commonjs": true, |
5 | 4 | "es6": true, |
6 | 5 | "node": true |
7 | 6 | }, |
8 | 7 | "extends": "eslint:recommended", |
9 | | - "parserOptions": { |
10 | | - "sourceType": "module" |
11 | | - }, |
12 | 8 | "rules": { |
13 | 9 | "comma-dangle": ["error", "never"], |
14 | | - "indent": ["error", "tab"], |
| 10 | + "indent": ["error", "tab", {"MemberExpression": "off", "SwitchCase": 1}], |
15 | 11 | "linebreak-style": ["error", "unix"], |
16 | 12 | "quotes": ["error", "single"], |
17 | 13 | "semi": ["error", "never"], |
18 | 14 | "no-unused-vars": ["warn"], |
19 | | - "no-console": 0 |
| 15 | + "no-console": ["warn", { "allow": ["error"] }], |
| 16 | + "eqeqeq": ["error", "always"], |
| 17 | + "getter-return": ["error"], |
| 18 | + "id-length": "error", |
| 19 | + "no-eval": "error", |
| 20 | + "no-trailing-spaces": "error", |
| 21 | + "no-with": "error", |
| 22 | + "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }], |
| 23 | + "strict": ["warn", "safe"], |
| 24 | + "curly": ["error", "multi-line"], |
| 25 | + "unicode-bom": ["error", "never"], |
| 26 | + "vars-on-top": "error", |
| 27 | + "max-len": [1, 120, 2, { "ignoreComments": true }], |
| 28 | + "quote-props": [1, "consistent-as-needed"], |
| 29 | + "no-cond-assign": [2, "except-parens"], |
| 30 | + "space-infix-ops": 0, |
| 31 | + "default-case": 0, |
| 32 | + "no-else-return": 0, |
| 33 | + "no-param-reassign": 0, |
| 34 | + "new-cap": 2 |
20 | 35 | } |
21 | 36 | } |
0 commit comments