-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
58 lines (57 loc) · 1.21 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"extends": [
"plugin:react/recommended",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"eslint-config-prettier"
],
"plugins": ["react", "babel", "import"],
"rules": {
"comma-dangle": 0,
"no-mixed-spaces-and-tabs": 0,
"no-alert": 0,
"import/default": 2,
"import/named": 2,
"import/no-unresolved": 2,
"no-underscore-dangle": 0,
"no-case-declarations": 0,
"strict": 0,
"no-console": 1,
"no-trailing-spaces": 0,
"react/display-name": 0,
"react/jsx-no-undef": 2,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": 0,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-unknown-property": 1,
"react/prop-types": 0,
"react/self-closing-comp": 0,
"react/sort-comp": 0,
"react/jsx-wrap-multilines": 1,
"react/react-in-jsx-scope": "off",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "error"
},
"settings": {
"react": {
"version": "detect"
}
}
}