-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
79 lines (76 loc) · 2.01 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const error = 'error'
const never = 'never'
const always = 'always'
const off = 'off'
const warn = 'warn'
module.exports = {
parser : 'babel-eslint',
parserOptions: {
ecmaFeatures: {
legacyDecorators : true,
experimentalObjectRestSpread: true
}
},
extends: ['standard'],
plugins: ['babel', 'import', 'jsx-a11y'],
globals: {
React : true,
performance: true
},
rules: {
'babel/new-cap' : 1,
'babel/no-unused-expressions': 1,
'babel/no-invalid-this' : 0,
'babel/quotes' : [error, 'single', {avoidEscape:true}],
'babel/object-curly-spacing' : [error, never],
'babel/semi' : [error, never],
'import/extensions' : off,
'react/prop-types' : off,
'key-spacing': [
warn,
{
singleLine: {
beforeColon: false,
afterColon : false
},
align: {
beforeColon: false,
afterColon : true,
on : 'colon'
}
}
],
'space-before-function-paren': [error, always],
'block-spacing' : [error, never],
curly : off,
'spaced-comment' : off,
'space-in-parens' : off,
indent : off,
'no-multi-spaces' : off,
'no-multiple-empty-lines' : off,
'padded-blocks' : off,
'new-cap' : off,
'no-unused-expressions': off,
'no-invalid-this' : off,
quotes : off,
'object-curly-spacing' : off,
semi : off,
'max-len' : [
error,
120,
4,
{
ignoreComments : true,
ignoreUrls : false,
ignoreRegExpLiterals : false,
ignoreStrings : false,
ignoreTemplateLiterals: false
}
],
'lines-between-class-members': [
'error',
'always',
{exceptAfterSingleLine:true}
]
}
}