-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.js
66 lines (66 loc) · 2.73 KB
/
.eslintrc.js
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
module.exports = {
env: {
"browser": true,
"es2021": true,
"node": true,
},
extends: [
'standard-with-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', "@stylistic", "@stylistic/ts"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "script",
project: true,
tsconfigRootDir: __dirname,
},
root: true,
rules: {
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"linebreak-style": "off",
"@typescript-eslint/naming-convention": ["error", {
format: ['snake_case', 'camelCase', 'UPPER_CASE'],
leadingUnderscore: "allow",
selector: "variable",
},{
format: ['PascalCase'],
leadingUnderscore: "forbid",
selector: "typeLike",
}],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"max-classes-per-file": ["error", 5],
"member-ordering": "off",
"no-console": "error",
"interface-name": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/consistent-type-imports": ["error", {prefer: "no-type-imports"}],
"@typescript-eslint/consistent-type-exports": "off",
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' }],
"@typescript-eslint/method-signature-style": ["warn", "method"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/semi": "off",
"@stylistic/semi": ["error", "always"],
"@stylistic/max-len": "off", //["error", 120],
"@typescript-eslint/comma-dangle": "off",
"@stylistic/comma-dangle": ["error", "only-multiline"],
"@typescript-eslint/member-delimiter-style": "off",
"@stylistic/ts/member-delimiter-style": "error",
},
}