-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
96 lines (95 loc) · 2.34 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
92
93
94
95
96
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"es6": true
},
"globals": {
"React": true,
"styled": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"import"
],
"extends": [
"eslint:recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prettier/react"
],
"rules": {
},
"overrides": [
{
"files": [
"**/*.ts",
"**/*.tsx",
"**/*.js"
],
"rules": {
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 2,
"no-undef": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"valid-jsdoc": 0,
"react/prop-types": 0,
"max-lines-per-function": ["error", 300],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "multiline-block-like",
"next": "multiline-block-like"
},
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"simple-import-sort/sort": "off",
"import/order": ["error", {"newlines-between": "never"}],
"camelcase": ["error", {"ignoreDestructuring": true}],
"eqeqeq": 2,
"no-negated-condition": "error",
"react/sort-comp": [2, {
"order": [
"static-methods",
"lifecycle",
"/^on.+$/",
"render",
"everything-else"
]
}],
"complexity": ["error", { "max": 20 }],
"max-params":["error", 3],
"max-statements-per-line": ["error", { "max": 1 }],
"object-shorthand": ["error", "always"],
"no-redeclare": "off",
"react/self-closing-comp": ["error", {
"component": true,
"html": true
}]
}
}
]
}