forked from saiyan8337/parimutuel-ui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.54 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
{
"plugins": ["@typescript-eslint", "simple-import-sort"],
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"sort-imports": "off",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages. `react` related packages come first.
[
"^react",
"^next",
"^(@hxronetwork/parimutuelsdk|request-ip|use-sound|google|assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)",
"^(@emotion|@solana|@chakra-ui|@Hxro-Network)(/.*|$)"
],
// Internal packages.
["^@?\\w"],
// Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
// Style imports.
["^.+\\.s?css$"],
// Side effect imports.
["^\\u0000"]
]
}
]
},
"overrides": [
{
"files": ["*.stories.tsx"],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
]
}