| 1 |
module.exports = { |
| 2 |
parser: require.resolve('babel-eslint'), |
| 3 |
parserOptions: { |
| 4 |
sourceType: 'module', |
| 5 |
}, |
| 6 |
env: { |
| 7 |
browser: true, |
| 8 |
node: true, |
| 9 |
es6: true, |
| 10 |
}, |
| 11 |
globals: {}, |
| 12 |
rules: { |
| 13 |
quotes: ['error', 'single'], |
| 14 |
'no-cond-assign': ['error', 'except-parens'], |
| 15 |
curly: 'error', |
| 16 |
eqeqeq: 'error', |
| 17 |
'no-eq-null': 'error', |
| 18 |
'wrap-iife': ['error', 'any'], |
| 19 |
'no-use-before-define': 'error', |
| 20 |
'new-cap': 'error', |
| 21 |
'no-caller': 'error', |
| 22 |
'dot-notation': 'error', |
| 23 |
'no-undef': 'error', |
| 24 |
'no-unused-vars': 'error', |
| 25 |
'no-const-assign': 'error', |
| 26 |
'prefer-const': 'error', |
| 27 |
'no-var': 'error', |
| 28 |
'comma-dangle': [ |
| 29 |
'error', |
| 30 |
{ |
| 31 |
arrays: 'always-multiline', |
| 32 |
objects: 'always-multiline', |
| 33 |
imports: 'always-multiline', |
| 34 |
exports: 'always-multiline', |
| 35 |
functions: 'ignore', |
| 36 |
}, |
| 37 |
], |
| 38 |
'object-curly-spacing': ['error', 'always'], |
| 39 |
}, |
| 40 |
}; |