-
Notifications
You must be signed in to change notification settings - Fork 7
/
example.eslintrc.js
88 lines (85 loc) · 2.32 KB
/
example.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
80
81
82
83
84
85
86
87
88
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", "standard-react"],
"plugins": [
"babel",
"import",
"jsx-a11y",
"react"
],
"globals": {
"React" : true,
"__DEV__" : true,
"WebSocket" : true,
"XMLHttpRequest": true,
"jest" : true,
"describe" : true,
"beforeAll" : true,
"afterAll" : true,
"beforeEach" : true,
"afterEach" : true,
"test" : true,
"expect" : 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,
"react/jsx-handler-names" : 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 }]
}
}