-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
81 lines (81 loc) · 2.39 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
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
{
"env": {
"es6": true,
"mocha": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": ["simple-import-sort", "no-only-tests", "unused-imports"],
"rules": {
"quotes": [
"error",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": false }
],
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"import/no-cycle": "error",
"import/no-default-export": "error",
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": false }
],
"import/no-unresolved": ["error", { "ignore": ["^knex/types/tables$"] }],
"no-constant-condition": "off",
"no-only-tests/no-only-tests": "error",
"no-restricted-imports": [
"error",
{
"paths": [
".",
"..",
"../..",
"../../..",
{
"name": "lodash",
"message": "Import [module] from lodash/[module] instead"
}
],
"patterns": ["**/old/**"]
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"unused-imports/no-unused-imports": "error"
},
"overrides": [
{
"files": ["**/test/**/*.ts", "*.test.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/unbound-method": "off",
"import/no-extraneous-dependencies": "off",
"no-unused-expressions": "off"
}
}
]
}