-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
107 lines (107 loc) · 1.84 KB
/
.eslintrc.json
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"extends": "airbnb",
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"forOf": true,
"jsx": true,
"es6": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"react",
"jsx-a11y"
],
"rules": {
"import/no-extraneous-dependencies": [
2,
{
"devDependencies": [
"**/*.spec.js", "**/config/*.js"
]
}
],
"indent": [
2,
2,
{ "SwitchCase": 1 }
],
"linebreak-style": 0,
"max-len": [
1,
80,
4,
{
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignorePattern": "^(import.*|const\\s.*\\s=\\srequire.*)",
"ignoreRegExpLiterals": true
}
],
"newline-after-var": 2,
"no-plusplus": [
2,
{
"allowForLoopAfterthoughts": true
}
],
"max-lines": [
2,
{
"skipComments": true
}
],
"no-underscore-dangle": [
0,
{ "allow": true }
],
"one-var": [
0,
"always"
],
"padded-blocks": 2,
"quotes": [
2,
"single"
],
"react/jsx-filename-extension": 0,
"react/jsx-indent": [
2,
2
],
"react/jsx-indent-props": [
2,
2
],
"react/jsx-max-props-per-line": [
2,
{ "when": "multiline" }
],
"react/no-array-index-key": 0,
"react/require-default-props": 0,
"semi": [
2,
"always"
],
"curly": [ 2, "all" ]
},
"globals": {
"describe": true,
"beforeEach": true,
"expect": true,
"it": true,
"jest": true,
"afterEach": true,
"jasmine": true,
"spyOn": true,
"fail" : true
}
}