-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
52 lines (52 loc) · 1.46 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
{
"extends": [
"next/core-web-vitals",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": ["import"],
"rules": {
"semi": ["warn", "never"],
"arrow-parens": ["error", "always"],
"max-len": ["warn", { "code": 100 }],
"indent": ["warn", 4],
"quotes": ["warn", "single"],
"import/order": [
"warn",
{
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling", "index"],
"object",
"type"
],
"pathGroupsExcludedImportTypes": ["builtin"],
"alphabetize": { "order": "asc", "caseInsensitive": true },
"newlines-between": "always",
"distinctGroup": true
}
]
},
"overrides": [
{
"files": ["*.mdx"],
"extends": ["plugin:mdx/recommended"],
"plugins": ["import"],
"rules": {
"max-len": "off",
"react/jsx-no-undef": "off",
"import/order": "off",
"indent": "off",
"no-restricted-imports": [
"error",
{
"patterns": ["*"]
}
]
}
}
]
}