-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
90 lines (90 loc) · 2.55 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
{
"env": {
"browser": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "eslint-plugin-import"],
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/indent": [
"error",
2,
{
"ignoredNodes": ["TSTypeParameterInstantiation"]
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/semi": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": "off",
"complexity": "error",
"curly": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"import/no-deprecated": "warn",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-invalid-this": "error",
"no-null/no-null": "off",
"no-restricted-imports": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": [
"error",
{
"hoist": "all"
}
],
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unused-expressions": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-object-spread": "error",
"quote-props": ["error", "consistent"],
"radix": "error",
"space-before-function-paren": "off",
"space-in-parens": ["off", "never"],
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"use-isnan": "error"
}
}