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