forked from subquery/network-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
47 lines (47 loc) · 1.28 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["header", "simple-import-sort"],
"extends": ["react-app", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended", "prettier"],
"rules": {
"react-hooks/exhaustive-deps": "off",
"header/header": [
2,
"line",
[
{
"pattern": " Copyright \\d{4}(-\\d{4})? SubQuery Pte Ltd authors & contributors",
"template": " Copyright 2020-2022 SubQuery Pte Ltd authors & contributors"
},
" SPDX-License-Identifier: Apache-2.0"
],
2
],
"@typescript-eslint/ban-types": "warn",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Packages. `react` related packages come first.
["^react", "^@?\\w"],
// Internal packages.
[
"^(src|containers|components|hooks|container|pages|stores|utils|i18n)(/.*|$)"
],
// Other local imports. Put same-folder imports and `.` last.
[
"^\\.\\.(?!/?$)",
"^\\.\\./?$",
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)",
"^\\./?$"
]
]
}
]
},
"globals": {
"importScripts": "writable",
"workbox": "writable"
}
}