forked from appfolio/react-gears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
44 lines (44 loc) · 1.11 KB
/
.eslintrc.json
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
{
"parser": "@typescript-eslint/parser",
"extends": [
"appfolio-react"
],
"plugins": [
"no-only-tests",
"react-hooks",
"@typescript-eslint"
],
"rules": {
"function-paren-newline": 0,
"import/newline-after-import": 1,
"max-len": 0,
"no-confusing-arrow": 0,
"no-only-tests/no-only-tests": 2,
"no-nested-ternary": 0,
"react/default-props-match-prop-types": [2, { "allowRequiredDefaults": true }],
"react/no-array-index-key": 1, // TODO Remove this when warnings are addressed
"react/no-find-dom-node": 1, // TODO Remove this when warnings are addressed
"react/prefer-stateless-function": 0,
"react/prop-types": 1,
"react/sort-comp": [1, {
"order": [
"propTypes",
"defaultProps",
"static-methods",
"state",
"constructor",
"everything-else",
"lifecycle",
"render"
]
}],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"require-jsdoc": 0
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
}
}