-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
71 lines (71 loc) · 2.78 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/restrict-template-expressions": [
"warn", { "allowAny": true, "allowBoolean": true }
],
"@typescript-eslint/array-type": [
"warn", { "default": "array-simple", "readonly": "array-simple" }
],
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/no-unused-vars": [
"warn", {
"varsIgnorePattern": "^_", "argsIgnorePattern": "^_",
"caughtErrors": "all", "caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/prefer-readonly": "warn",
"@typescript-eslint/comma-dangle": "error",
"@typescript-eslint/comma-spacing": [
"warn", { "before": false, "after": true }
],
"@typescript-eslint/consistent-indexed-object-style": ["warn", "record"],
"@typescript-eslint/consistent-type-definitions": ["warn", "interface"],
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/func-call-spacing": ["warn", "never"],
"@typescript-eslint/indent": ["warn", 4],
"@typescript-eslint/keyword-spacing": "warn",
"@typescript-eslint/lines-between-class-members": [
"warn", "always", { "exceptAfterSingleLine": true }
],
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/semi": "error",
"quotes": ["warn", "double"],
"no-empty-function": [
"warn", { "allow": [ "constructors" ] }
],
"operator-linebreak": ["warn", "before"],
"implicit-arrow-linebreak": ["warn", "beside"],
"eol-last": "error",
"camelcase": "warn",
"brace-style": ["warn", "1tbs"]
}
}