|
| 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 | + "rules": { |
| 15 | + "brace-style": ["error", "1tbs", {"allowSingleLine": true}], |
| 16 | + "comma-style": "error", |
| 17 | + "comma-spacing": "error", |
| 18 | + "eqeqeq": ["off", "smart"], |
| 19 | + "indent": "off", |
| 20 | + "indent-legacy": ["error", 4, {"SwitchCase": 1}], |
| 21 | + "key-spacing": "error", |
| 22 | + "keyword-spacing": "error", |
| 23 | + "linebreak-style": ["error", "unix"], |
| 24 | + "no-multi-spaces": "error", |
| 25 | + "no-trailing-spaces": "error", |
| 26 | + "no-lone-blocks": "error", |
| 27 | + "no-extend-native": "error", |
| 28 | + "no-unused-vars": ["error", {"vars": "local", "args": "none"}], |
| 29 | + "no-empty": ["error", {"allowEmptyCatch": true}], |
| 30 | + "no-duplicate-imports": "error", |
| 31 | + "no-array-constructor": "error", |
| 32 | + "no-multiple-empty-lines": "error", |
| 33 | + "no-template-curly-in-string": "error", |
| 34 | + "no-console": "off", |
| 35 | + "object-curly-spacing": "error", |
| 36 | + "quotes": ["error", "single", {"avoidEscape": true}], |
| 37 | + "semi": ["error", "always"], |
| 38 | + "space-infix-ops": "error", |
| 39 | + "space-unary-ops": "error", |
| 40 | + "space-in-parens": "error", |
| 41 | + "space-before-blocks": "error", |
| 42 | + "template-curly-spacing": "error" |
| 43 | + } |
| 44 | +}; |
0 commit comments