-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
48 lines (48 loc) · 1.25 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended-legacy",
"eslint-config-prettier",
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "unused-imports", "sort-exports", "import"],
"root": true,
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"no-console": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "^_",
},
],
"sort-exports/sort-exports": ["error", { "sortDir": "asc" }],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"unknown",
"parent",
"sibling",
"index",
"object",
"type",
],
"pathGroups": [
{ "pattern": "@**", "group": "external", "position": "after" },
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": true },
},
],
},
}