-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
43 lines (43 loc) · 1.17 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
{
"root": true,
"extends": [
"plugin:perfectionist/recommended-natural",
"universe/node",
"universe/web",
"universe/native",
"universe/shared/typescript-analysis"
],
"overrides": [
{
"files": ["*.js", "*.jsx", "*.mjs", "*.ts", "*.tsx"],
"parserOptions": { "project": "./tsconfig.json" }
}
],
"rules": {
// Customize `sort-imports` with newlines and internal pattern
"perfectionist/sort-imports": [
"error",
{
"groups": [
"type",
["builtin", "external"],
"internal-type",
"internal",
["parent-type", "sibling-type", "index-type"],
["parent", "sibling", "index"],
"object",
"unknown"
],
"internal-pattern": ["@/**", "@env"],
"newlines-between": "always"
}
],
// Perfectionist already does this, so disable the ones from universe
"import/order": "off",
"sort-imports": "off",
// Disable other rules that are too strict
"perfectionist/sort-intersection-types": "off",
// Add exhaustive-deps since it's disabled by default in universe
"react-hooks/exhaustive-deps": "warn"
}
}