-
Notifications
You must be signed in to change notification settings - Fork 30
/
.eslintrc.json
82 lines (82 loc) · 1.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"root": true,
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"],
"rules": {
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "import",
"next": "*"
},
{
"blankLine": "any",
"prev": "import",
"next": "import"
}
],
"no-restricted-imports": [
"error",
{
"name": "lodash",
"message": "Please use lodash-es instead."
},
{
"name": "antd",
"message": "Please use antd/es/* instead."
}
],
"import/no-unresolved": "error",
"import/first": "error",
"import/no-amd": "error",
"import/no-webpack-loader-syntax": "error",
"import/order": [
"error",
{
"alphabetize": { "order": "desc", "caseInsensitive": true },
"groups": [[
"builtin", "external"
], [
"internal", "parent", "sibling", "index", "object"
], [
"type"
]],
"pathGroups": [
{
"pattern": "./**/*.module.scss",
"group": "sibling",
"position": "after"
},
{
"pattern": "./**/*.module.css",
"group": "sibling",
"position": "after"
}
],
"newlines-between": "always",
"warnOnUnassignedImports": true
}
],
"@typescript-eslint/consistent-type-imports": "error"
},
"overrides": [{
"files": [
"**/*.ts", "**/*.tsx"
],
"plugins": ["import", "@typescript-eslint"],
"settings": {
"react": {
"version": "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "apps/*/tsconfig.json"
}
}
}
}]
}