-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc.json
69 lines (69 loc) · 1.37 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jasmine": true
},
"parser": "babel-eslint",
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"plugins": ["react", "babel", "import"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": [
2,
2,
{
"ignoredNodes": ["TemplateLiteral"]
}
],
"linebreak-style": [2, "unix"],
"quotes": [2, "single"],
"semi": [2, "never"],
"comma-dangle": [2, "never"],
"babel/object-curly-spacing": [2, "never"],
"no-unused-expressions": [
2,
{
"allowShortCircuit": true
}
],
"arrow-body-style": [2, "as-needed"],
"curly": [2, "multi", "consistent"],
"no-param-reassign": 0,
"consistent-return": 0,
"no-underscore-dangle": [
2,
{
"allowAfterThis": true
}
],
"no-nested-ternary": 0,
"no-prototype-builtins": 0,
"react/jsx-equals-spacing": [2, "never"],
"react/prop-types": [
2,
{
"ignore": [
"classes",
"theme",
"style",
"className",
"onFocus",
"onBlur",
"maxLength",
"zIndex",
"windowEvents"
]
}
]
},
"settings": {
"react": {
"version": "^16.8.0"
}
}
}