-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
109 lines (109 loc) · 3.48 KB
/
.eslintrc.json
File metadata and controls
109 lines (109 loc) · 3.48 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.*?.json"
},
"plugins": ["@typescript-eslint", "import", "prettier"],
"ignorePatterns": ["**/*"],
"extends": [
"airbnb",
"airbnb-typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"overrides": [
{
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"rules": {
"global-require": 0,
"no-alert": 1,
"no-console": 0,
"no-shadow": 0,
"no-continue": 1,
"no-use-before-define": 0,
"no-multi-spaces": 2,
"no-explicit-any": 0,
"linebreak-style": 0,
"lines-between-class-members": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"import/order": [
2,
{
"groups": [
"builtin",
"external",
"internal",
"sibling",
"parent",
"object"
],
"pathGroups": [
{
"pattern": "@constants/**",
"group": "external",
"position": "after"
},
{
"pattern": "@typechains/**",
"group": "external",
"position": "after"
},
{ "pattern": "~/**", "group": "internal", "position": "after" }
],
"pathGroupsExcludedImportTypes": ["builtin"],
"alphabetize": { "order": "asc", "caseInsensitive": true },
"newlines-between": "never"
}
],
"prettier/prettier": 0,
"no-unused-vars": 0,
"@typescript-eslint/consistent-type-imports": 2,
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/require-await": 1,
"@typescript-eslint/no-shadow": 1,
"@typescript-eslint/unbound-method": 1,
"@typescript-eslint/no-var-requires": 1,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-throw-literal": 0,
"@typescript-eslint/no-unsafe-enum-comparison": 1,
"@typescript-eslint/lines-between-class-members": 0
}
},
{
"files": [
"*.spec.ts",
"*.spec.tsx",
"*.test.ts",
"*.test.tsx",
"*.mock.ts",
"*.mock.tsx"
],
"rules": {
"@typescript-eslint/require-await": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-non-null-assertion": 0
}
}
]
}