-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
62 lines (62 loc) · 1.46 KB
/
.eslintrc
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
{
"rules": {
"no-var": 2,
"semi": ["error", "never"],
"prefer-arrow-callback": 2,
"no-confusing-arrow": 2,
"prefer-const": 2,
"no-const-assign": 2,
"prefer-spread": 0,
"prefer-template": 2,
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [
2,
{
"before": true,
"after": true
}
],
"constructor-super": 2,
"sort-imports": 0,
"no-unused-vars": [2, { "varsIgnorePattern": "React$" }],
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/display-name": 2,
"react/no-danger": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-unknown-property": 2,
"react/prop-types": [
2,
{
"ignore": ["children"]
}
],
"react/no-unused-prop-types": 2,
"react/sort-comp": 2,
"react/self-closing-comp": 2,
"react/jsx-wrap-multilines": 2,
"react/jsx-key": 2,
"react/jsx-pascal-case": 2
},
"plugins": ["lodash", "react"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"classes": true
}
},
"env": {
"browser": true,
"commonjs": true
},
"settings": {
"react": {
"version": "16.12"
}
}
}