-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
55 lines (53 loc) · 1.17 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
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:prettier/recommended", "plugin:tailwindcss/recommended"],
"root": true,
"plugins": [
"hooks",
"jest-dom",
"prettier",
"react",
"simple-import-sort",
"sort-destructure-keys",
"sort-keys-fix",
"tailwindcss",
"testing-library",
"typescript-sort-keys"
],
"rules": {
"hooks/sort": [
2,
{
"groups": [
"useReducer",
"useContext",
"useState",
"useRef",
"useDispatch",
"useCallback",
"useEffect"
]
}
],
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"prettier/prettier": "error",
"react/jsx-sort-props": "error",
"tailwindcss/no-custom-classname": [
1,
{
"whitelist": ["map3", "sbui-badge--.*"]
}
],
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sort-destructure-keys/sort-destructure-keys": "error",
"sort-keys-fix/sort-keys-fix": "error",
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error"
}
}