-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc
73 lines (73 loc) · 1.7 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
63
64
65
66
67
68
69
70
71
72
73
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"rules":{
"no-console":0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
// no-return-await disabled because of https://stackoverflow.com/a/44806230
"no-return-await": "off",
"indent": [
2,
2,
{
"SwitchCase": 1,
"ObjectExpression": 1
}
],
"react/jsx-uses-vars": [2],
"semi": [2, "always"],
"linebreak-style": 0,
"consistent-return": 0,
"no-use-before-define": 0,
"no-multi-assign": 0,
"no-lonely-if": 1,
"no-nested-ternary": 0,
"wrap-iife": [2, "inside"],
"jsx-quotes": [2, "prefer-single"],
"generator-star-spacing": 0,
"react/forbid-prop-types": 0,
"react/sort-comp": 1,
"react/no-string-refs": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": 2,
"react/require-default-props": [2, { "forbidDefaultForRequired": true }],
"jsx-a11y/no-static-element-interactions": 0,
"keyword-spacing": [2, { "before": true }],
"eqeqeq": [2, "always"],
"space-infix-ops": [2, {"int32Hint": false}],
"spaced-comment": 2,
"comma-spacing": [2, { "before": false, "after": true }],
"block-spacing": [2, "always"],
"no-else-return": 2,
"no-bitwise": "off"
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"plugins": [
"react"
],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"paths": ["src"]
}
}
}
}