-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
51 lines (51 loc) · 1.47 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
{
"env": { "es6": true },
"extends": ["next/core-web-vitals", "prettier"],
"plugins": ["@typescript-eslint", "import", "simple-import-sort"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-shadow": "off"
},
"overrides": [
{
"files": ["**/*.js", "**/*.ts", "**/*.tsx"],
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react$", "^react-native$"],
["^@next$", "^next$"],
["^[a-z]", "^@[a-z]"],
//
["^@http", "^@storage"],
["^@services"],
//
["^@/typings", "^@/contexts"],
["^@/helpers"],
//
["^@/hooks"],
["^@/translate"],
["^@/components"],
//
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$", "^\\.\\.(?!/?$)", "^\\.\\./?$"]
]
}
]
}
}
]
}