-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
36 lines (36 loc) · 1.02 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
{
"parser": "babel-eslint",
"plugins": [
"react",
"jest"
],
"extends": ["airbnb"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "single"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"max-len": [1, 120, 2, {"ignoreComments": true}],
"react/prefer-es6-class": ["error", "always"],
"react/no-unused-prop-types": [1],
"react/prop-types": [2],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"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",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"react/forbid-prop-types": [0],
"no-console": [0],
"react/destructuring-assignment": [0],
"import/no-webpack-loader-syntax": [0],
"import/no-unresolved": [0]
}
}