-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc
45 lines (45 loc) · 1.2 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
{
"parser": "babel-eslint",
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"plugins": ["react", "jest"],
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"rules": {
"react/jsx-no-bind": [
"error",
{
"allowArrowFunctions": true,
"allowBind": false,
"ignoreRefs": true
}
],
"react/prefer-stateless-function": "error",
"react/no-did-update-set-state": "error",
"react/no-unknown-property": "error",
"react/no-unused-prop-types": "error",
"react/react-in-jsx-scope": "error",
"jsx-quotes": ["warn", "prefer-double"],
"quotes": ["warn", "double"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-eval": "error",
"no-shadow": "error",
"no-trailing-spaces": "warn",
"no-unused-expressions": "error",
"no-var": "error",
"comma-dangle": ["error", "never"],
"max-len": ["error", { "code": 120 }],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
}
}