-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
120 lines (120 loc) · 4.61 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns": ["*.js", "*.mjs"],
"rules": {
"linebreak-style": [
"error",
"windows"
],
"@typescript-eslint/prefer-for-of": ["warn"],
"@typescript-eslint/no-unsafe-argument": ["error"],
"@typescript-eslint/prefer-includes": ["error"],
"@typescript-eslint/prefer-ts-expect-error": ["error"],
"@typescript-eslint/prefer-literal-enum-member": ["error", {
"allowBitwiseExpressions": true
}],
"@typescript-eslint/typedef": [
"error",
{
"arrowParameter": false,
"parameter": true,
"variableDeclaration": true,
"memberVariableDeclaration": true
}
],
"quotes": "off",
"@typescript-eslint/quotes": ["error", "double"],
"brace-style": "off",
"@typescript-eslint/brace-style": "error",
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error",
{
"arrays": "always",
"objects": "always",
"enums": "always",
"functions": "never"
}],
"@typescript-eslint/explicit-function-return-type": "error",
"require-await": "off",
"@typescript-eslint/require-await": "error",
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": ["warn"],
"default-param-last": "off",
"@typescript-eslint/default-param-last": "error",
"dot-notation": "off",
"@typescript-eslint/dot-notation": ["error"],
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": "warn",
"indent": "off",
"@typescript-eslint/indent": ["error", "tab"],
"init-declarations": "off",
"@typescript-eslint/init-declarations": ["error", "always"],
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["warn"],
"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": ["warn"],
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": ["error"],
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": ["off"],
"no-duplicate-imports": "off",
"@typescript-eslint/no-duplicate-imports": ["error"],
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": ["warn"],
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": ["warn"],
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": ["error"],
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": ["error"],
"no-invalid-this": "off",
"@typescript-eslint/no-invalid-this": ["error"],
"no-loop-func": "off",
"@typescript-eslint/no-loop-func": ["error"],
"@typescript-eslint/no-unsafe-member-access": ["error"],
"no-loss-of-precision": "off",
"@typescript-eslint/no-loss-of-precision": ["error"],
"no-magic-numbers": "off",
"@typescript-eslint/no-magic-numbers": ["warn", {
"ignoreEnums": true,
"ignoreArrayIndexes": true,
"ignore": [0, -1]
}],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": ["error"],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": ["warn"],
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": ["warn"],
"no-return-await": "off",
"@typescript-eslint/return-await": ["error", "always"],
"semi": "off",
"@typescript-eslint/semi": ["error", "always"],
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": ["warn"],
"space-infix-ops": "off",
"@typescript-eslint/space-infix-ops": ["warn", { "int32Hint": false }]
}
}