/
eslint.json
98 lines (98 loc) · 2.9 KB
/
eslint.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"extends": ["standard-with-typescript"],
"parserOptions": {
"project": "./tsconfig.lint.json",
"sourceType": "module"
},
"reportUnusedDisableDirectives": true,
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/pnpm/**",
"**/test/**"
]
}
],
"import/no-default-export": "error",
"@typescript-eslint/indent": [
"error",
2,
{
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
}
}
],
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/prefer-reduce-type-parameter": "off",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "error",
"no-return-await": "error",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/require-array-sort-compare": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-misused-promises": "off",
"no-multi-str": "off",
"no-mixed-operators": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/ban-ts-comment": "off",
"brace-style": [
"error",
"1tbs"
],
"@typescript-eslint/comma-dangle": [
"error",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"curly": "off",
"eol-last": "off",
"import/order": "off",
"max-len": "off",
"no-multiple-empty-lines": "error",
"no-redeclare": "error",
"no-restricted-properties": [
"error",
{
"property": "substr",
"message": "Use .slice instead of .substr."
}
],
"no-trailing-spaces": "error",
"no-var": "error",
"space-before-function-paren": [
"error",
"always"
]
}
}