-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (49 loc) · 1.05 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
{
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"browser": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"prettier/@typescript-eslint",
"prettier/react"
],
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"prettier",
"jest"
],
"parserOptions": {
"sourceType": "module",
// "project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
// prettier
"prettier/prettier": 2,
"@typescript-eslint/adjacent-overload-signatures": 2,
// 大事
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 2,
// react
"react/display-name": 0,
"react/prop-types": 0,
// hooks
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 1,
// jest
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 2,
"jest/no-identical-title": 2,
"jest/prefer-to-have-length": 1,
"jest/valid-expect": 2
}
}