-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
102 lines (102 loc) · 2.89 KB
/
.eslintrc.cjs
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
// eslint-disable-next-line no-undef
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
ignorePatterns: ["node_modules", "build", "coverage", "dist"],
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
extraFileExtensions: [".json"],
ecmaVersion: 12,
sourceType: "module",
tsconfigRootDir: __dirname, // eslint-disable-line no-undef
project: "./tsconfig.json",
},
overrides: [
{
files: ["**/*.js", "**/*.ts"],
},
],
plugins: [
"simple-import-sort",
"import",
"json-format",
"prettier",
"@typescript-eslint",
"unused-imports",
],
rules: {
radix: 0,
"no-new": 0,
"no-void": 0,
"no-shadow": 0,
"no-bitwise": 0,
"no-unused-vars": 0,
"prettier/prettier": ["error"],
"linebreak-style": ["error", "unix"],
"no-prototype-builtins": 0,
"prefer-rest-params": 0,
"no-mixed-spaces-and-tabs": 0,
"import/no-cycle": "error",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0,
"eslint-comments/no-unlimited-disable": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unsafe-call": 0,
"simple-import-sort/imports": [
"error",
{
groups: [["^node:", "^[a-z]", "^@?\\w", "^", "^\\.", "^\\u0000"]],
},
],
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
destructuredArrayIgnorePattern: "^_",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-shadow": 0,
"@typescript-eslint/no-unnecessary-type-constraint": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/restrict-plus-operands": 2,
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/require-await": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-floating-promises": [
"error",
{ ignoreVoid: true, ignoreIIFE: true },
],
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".json"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: "./tsconfig.json",
},
},
},
};