This repository was archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
93 lines (93 loc) · 2.2 KB
/
Copy path.eslintrc.json
File metadata and controls
93 lines (93 loc) · 2.2 KB
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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:unicorn/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 }],
/* unicorn */
"unicorn/filename-case": [0],
"unicorn/no-null": [0],
"unicorn/prevent-abbreviations": [
2,
{
"replacements": {
"arg": false,
"args": false,
"i": false,
"j": false,
"ref": false,
"refs": false,
"req": false,
"res": false,
"prev": false
},
"allowList": {
"ImportMetaEnv": false
}
}
]
},
"overrides": [
{
"files": ["*.config.js"],
"extends": ["plugin:node/recommended"],
"plugins": ["node"],
"rules": {
"unicorn/prefer-module": [0]
}
},
{
"files": ["*.d.ts"],
"rules": {
"unicorn/prevent-abbreviations": 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
}
}
]
}