forked from michaelmcshinsky/react-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
91 lines (91 loc) · 2.24 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"env": {
"browser": true,
"jest": true
},
"plugins": ["react-hooks"],
"rules": {
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"linebreak-style": 0,
"space-before-function-paren": [2, "always"],
"no-else-return": 0,
"no-console": ["warn", { "allow": ["error"] }],
"no-use-before-define": [0],
"arrow-spacing": 2,
"react/prop-types": 2,
"arrow-body-style": 0,
"react/prefer-stateless-function": 0,
"import/prefer-default-export": 0,
"import/no-unresolved": 0,
"no-param-reassign": [2, { "props": false }],
"object-shorthand": [1],
"max-len": [
2,
160,
2,
{
"ignoreUrls": true,
"ignoreComments": false
}
],
"react/jsx-no-bind": [
1,
{
"ignoreRefs": true,
"allowArrowFunctions": false,
"allowBind": false
}
],
"react/jsx-closing-tag-location": [0],
"no-return-assign": [0],
"react/jsx-key": "error",
"react/jsx-curly-spacing": [
2,
"always",
{
"spacing": {
"objectLiterals": "never"
}
}
],
"func-names": [0],
"react/self-closing-comp": [0],
"react/no-unused-prop-types": [0],
"react/jsx-filename-extension": [0],
"react/no-find-dom-node": [1],
"react/no-string-refs": [1],
"react/forbid-prop-types": [0],
"react/require-default-props": [0],
"class-methods-use-this": [0],
"newline-per-chained-call": [0],
"no-underscore-dangle": [0],
"jsx-a11y/label-has-for": [1],
"jsx-a11y/no-static-element-interactions": [0],
"no-prototype-builtins": 0,
"react/destructuring-assignment": [0],
"react/jsx-max-props-per-line": [1, { "maximum": 1 }],
"react/sort-comp": [
2,
{
"order": [
"propTypes",
"constructor",
"lifecycle",
"componentDidCatch",
"/^build.+$/",
"/^on.+$/",
"/^(get|set)(?!(InitialState$|DefaultProps$|ChildContext$)).+$/",
"render",
"/^render.+$/",
"everything-else"
]
}
],
"react-hooks/rules-of-hooks": "error"
},
"globals": {
"window": true
}
}