-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.3 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
{
"root": true,
"env": {
"browser": true,
"es2022": true,
"node": true,
"mocha": true,
"mongo": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"rules": {
"import/extensions": ["warn", "ignorePackages"],
"import/no-named-as-default": "warn",
"import/no-cycle": "warn",
"import/no-unused-modules": "warn",
"import/no-deprecated": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-redeclare": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-pattern": "off",
"no-empty": ["error", { "allowEmptyCatch": true }],
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }]
}
}