-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.base.json
39 lines (36 loc) · 1.07 KB
/
.eslintrc.base.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
{
"extends": [
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react-hooks/recommended"
],
"plugins": ["import", "react-hooks"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"import/no-unresolved": ["off"],
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [["external", "builtin"], "internal", ["parent", "sibling", "index"], ["object", "unknown"]]
}
],
"import/extensions": [
"error",
"ignorePackages",
{ "ts": "never", "tsx": "never", "js": "never", "jsx": "never", "json": "always" }
],
"import/prefer-default-export": ["off"],
"import/no-extraneous-dependencies": [0],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error"
}
}
]
}