forked from propertyapi/frontend-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (57 loc) · 1.66 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"rules": {
"react/style-prop-object": [0],
"semi": "off",
"@typescript-eslint/member-delimiter-style": [
"off",
{
"multiline": {
"delimiter": "none",
"requireLast": false
}
}
],
"@typescript-eslint/semi": [0],
"@typescript-eslint/no-non-null-assertion": [0],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-inferrable-types": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
//Temp
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "props|^_", "ignoreRestSiblings": true }
],
// Don't let files get too large. There's always going to be some cases with class files that
// need to be longer. Just add a eslint-ignore comment for that 1 file. Keeping this rule
// encourages people to split and organise files properly
"max-lines": [
"error",
{
"max": 150,
"skipBlankLines": true,
"skipComments": true
}
]
},
"overrides": [
{
// Stop generated files being included in eslint
"files": "**/generated/**",
"rules": {
"max-lines": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}