-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
64 lines (64 loc) · 1.61 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",
"plugin:jest-formatting/recommended"
],
"plugins": [
"unused-imports",
"simple-import-sort",
"react",
"react-hooks",
"jest",
"jest-formatting"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"prefer-spread": 2,
"prefer-template": 2,
"no-useless-rename": [2],
"object-shorthand": [2, "always"],
/* unused-imports */
"unused-imports/no-unused-imports": [2],
/* simple-import-sort */
"sort-imports": 0,
"simple-import-sort/imports": 2,
"simple-import-sort/exports": 2,
/* react */
"react/self-closing-comp": [2, { "component": true, "html": false }]
},
"overrides": [
{
"files": ["*.config.js"],
"extends": ["plugin:node/recommended"],
"plugins": ["node"],
"rules": {
"unicorn/prefer-module": [0]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"react/jsx-filename-extension": 0,
"react/default-props-match-prop-types": 0,
"react/prop-types": 0,
"react/jsx-indent": 0,
"react/no-typos": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-wrap-multilines": 0,
"react/react-in-jsx-scope": 0 // because tsconfig jsx option is react-jsx
}
}
]
}