-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
54 lines (54 loc) · 1.12 KB
/
.eslintrc.js
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
root: true,
parser: 'babel-eslint',
extends: ['react-app'],
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true
}
},
rules: {
'eqeqeq': 'error',
'no-var': 'error',
'no-alert': 'error',
'no-console': 'warn',
'indent': [
'warn',
4,
{
'SwitchCase': 1
}
],
'quotes': [
'warn',
'single'
],
'semi': [
'warn',
'always'
],
'strict': [
'warn',
'global'
],
'space-infix-ops': 'error',
'space-in-parens': 'error',
'space-unary-ops': 'error',
'no-trailing-spaces': 'warn',
'no-irregular-whitespace': 'error',
'no-unused-vars': [
'warn',
{
'vars': 'all',
'args': 'all',
'argsIgnorePattern': '^__unused__'
}
]
}
};