|
| 1 | +{ |
| 2 | + "parserOptions": { |
| 3 | + "ecmaVersion": 6, |
| 4 | + "sourceType": "module" |
| 5 | + }, |
| 6 | + "rules":{ |
| 7 | + // 0 - "off"; 1 - "warn"; 2 - "error" |
| 8 | + "camelcase": "warn", |
| 9 | + "comma-dangle": "warn", |
| 10 | + "quotes": ["warn", "single"], |
| 11 | + "no-compare-neg-zero": "warn", |
| 12 | + "no-console": "off", |
| 13 | + "no-dupe-args": "warn", |
| 14 | + "no-dupe-keys": "warn", |
| 15 | + "no-duplicate-case": "warn", |
| 16 | + "no-empty": "warn", |
| 17 | + "no-extra-semi": "warn", |
| 18 | + "no-irregular-whitespace": "warn", |
| 19 | + "no-regex-spaces": "warn", |
| 20 | + "no-unreachable": "warn", |
| 21 | + "block-scoped-var": "warn", |
| 22 | + "eqeqeq": "warn", |
| 23 | + "no-alert": "warn", |
| 24 | + "no-empty-function": "warn", |
| 25 | + "no-multi-spaces": "warn", |
| 26 | + "no-multi-str": "warn", |
| 27 | + "no-redeclare": "warn", |
| 28 | + "no-useless-return": "warn", |
| 29 | + "vars-on-top": "warn", |
| 30 | + "strict": ["error", "global"], |
| 31 | + "no-unused-vars": "warn", |
| 32 | + "no-use-before-define": "warn", |
| 33 | + "array-bracket-spacing": ["error", "never"], |
| 34 | + "block-spacing": "warn", |
| 35 | + "brace-style": "error", |
| 36 | + //"comma-dangle": ["error", "never"], |
| 37 | + "comma-spacing": ["error", { "before": false, "after": true }], |
| 38 | + "comma-style": ["error", "last"], |
| 39 | + "computed-property-spacing": ["error", "never"], |
| 40 | + "eol-last": ["warn", "always"], |
| 41 | + "indent": ["warn", 2], |
| 42 | + "no-mixed-spaces-and-tabs": "error", |
| 43 | + "no-multiple-empty-lines": "error", |
| 44 | + "no-trailing-spaces": "warn", |
| 45 | + "no-unneeded-ternary": "warn", |
| 46 | + "no-whitespace-before-property": "error", |
| 47 | + "sort-keys": "warn", |
| 48 | + "sort-vars": "warn", |
| 49 | + "spaced-comment": ["warn", "always"], |
| 50 | + "arrow-spacing": "warn", |
| 51 | + "no-var": "warn", |
| 52 | + "sort-imports": ["warn", { "ignoreCase": true }] |
| 53 | + } |
| 54 | +} |
0 commit comments