/
.eslintrc
90 lines (90 loc) · 2.93 KB
/
.eslintrc
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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"root": true,
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"indent": ["warn", 4],
"@typescript-eslint/brace-style": "warn",
"@typescript-eslint/comma-dangle": "warn",
"@typescript-eslint/comma-spacing": "warn",
"@typescript-eslint/consistent-indexed-object-style": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-member-accessibility": "warn",
"@typescript-eslint/func-call-spacing": "warn",
"@typescript-eslint/keyword-spacing": "warn",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-extra-parens": "warn",
"@typescript-eslint/no-extra-semi": "warn",
"@typescript-eslint/no-require-imports": "warn",
"@typescript-eslint/no-shadow": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/no-unnecessary-qualifier": "warn",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/object-curly-spacing": [
"warn",
"always"
],
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/no-floating-promises": ["error",
{
"ignoreVoid": true
}],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-readonly": "warn",
"@typescript-eslint/promise-function-async": "warn",
"@typescript-eslint/quotes": "warn",
"@typescript-eslint/semi": "warn",
"@typescript-eslint/space-infix-ops": "warn",
"@typescript-eslint/type-annotation-spacing": "warn",
"array-bracket-spacing": "warn",
"arrow-parens": "warn",
"arrow-spacing": "warn",
"block-spacing": "warn",
"dot-location": [
"warn",
"property"
],
"eqeqeq": "warn",
"key-spacing": "warn",
"no-confusing-arrow": "warn",
"no-console": "error",
"no-implicit-coercion": "warn",
"no-lonely-if": "warn",
"no-multi-spaces": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"operator-linebreak": [
"warn",
"before"
],
"prefer-exponentiation-operator": "warn",
"rest-spread-spacing": "warn",
"space-before-blocks": "warn",
"space-in-parens": "warn",
"space-unary-ops": "warn",
"spaced-comment": "warn"
}
}