-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
42 lines (36 loc) · 836 Bytes
/
.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
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"babel",
"react",
],
"env": {
"browser": true,
"es6": true,
"jest": true
},
"rules": {
/* Errors */
"react/jsx-no-undef": 2,
"react/jsx-no-duplicate-props": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/no-unknown-property": 2,
/* Warnings */
"jsx-quotes": [1, "prefer-double"],
"react/jsx-curly-spacing": [1, "never"],
"react/jsx-uses-vars": 1,
"react/prefer-es6-class": 1,
"babel/object-curly-spacing": 1,
"no-console": [1, { allow: ["warn", "error", "debug", "info"] }],
/* Disabled */
"strict": 0,
"eqeqeq": 0,
"object-curly-spacing": 0,
"react/prop-types": 0,
}
}