|
| 1 | +module.exports = { |
| 2 | + root: true, |
| 3 | + env: { |
| 4 | + browser: true, |
| 5 | + es6: true, |
| 6 | + }, |
| 7 | + rules: { |
| 8 | + 'brace-style': 'warn', // [1tbs default, stroustrup, allman] |
| 9 | + 'comma-dangle': ['warn', 'always-multiline'], |
| 10 | + 'indent': ['warn', 2], |
| 11 | + 'no-unused-vars': 'warn', |
| 12 | + 'quotes': ['warn', 'single', { avoidEscape: true }], |
| 13 | + 'semi': ['warn', 'never'], |
| 14 | + |
| 15 | + 'array-bracket-spacing': ['warn', 'never'], |
| 16 | + 'comma-spacing': ['warn', { before: false, after: true }], |
| 17 | + 'key-spacing': ['warn'], |
| 18 | + 'keyword-spacing': ['warn'], |
| 19 | + 'no-multi-spaces': ['warn'], |
| 20 | + 'no-trailing-spaces': ['warn'], |
| 21 | + 'object-curly-spacing': ['warn', 'always'], |
| 22 | + 'space-before-function-paren': ['warn', 'always'], |
| 23 | + 'space-before-blocks': 'warn', |
| 24 | + 'space-infix-ops': ['warn'], |
| 25 | + 'space-in-parens': ['warn', 'never'], |
| 26 | + }, |
| 27 | + globals: { |
| 28 | + process: true, |
| 29 | + }, |
| 30 | +} |
0 commit comments