-
Notifications
You must be signed in to change notification settings - Fork 100
/
.eslintrc.cjs
71 lines (71 loc) · 3.05 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
module.exports = {
env: {
es6: true,
node: true,
},
extends: ["plugin:@typescript-eslint/all", "prettier"],
overrides: [
{
files: ["*.stubs.ts", "*.test.ts"],
rules: {
"@typescript-eslint/promise-function-async": "off",
},
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.eslint.json",
},
plugins: ["simple-import-sort", "@typescript-eslint"],
rules: {
"@typescript-eslint/comma-dangle": [
"error",
{
arrays: "only-multiline",
objects: "only-multiline",
imports: "only-multiline",
functions: "only-multiline",
enums: "only-multiline",
},
],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/generic-type-naming": "off",
"@typescript-eslint/init-declarations": "off",
"@typescript-eslint/method-signature-style": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-type-alias": "off",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-acces": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-untyped-public-signature": "off",
"@typescript-eslint/no-unused-vars-experimental": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/parameter-properties": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/prefer-reduce-type-parameter": "off",
"@typescript-eslint/require-array-sort-compare": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/sort-type-union-intersection-members": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/switch-exhaustiveness-check": "off",
"@typescript-eslint/typedef": "off",
"comma-dangle": "off",
"no-else-return": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
};