-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.json
65 lines (65 loc) · 1.51 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 6,
"impliedStrict": true,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"comma-dangle": "off",
"comma-spacing": [
"error",
{
"after": true,
"before": false
}
],
"comma-style": ["error", "last"],
"semi": "error",
"indent": [
"error",
4,
{
"flatTernaryExpressions": true,
"SwitchCase": 1
}
],
"jsx-quotes": ["error", "prefer-double"],
"no-mixed-spaces-and-tabs": "error",
"strict": "error",
"max-len": ["error", 100],
"prefer-const": "error",
"no-console": "error",
"no-const-assign": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-undef": "error",
"no-unused-vars": "off",
"no-var": "error",
"no-extend-native": "error"
}
}