/
.eslintrc.json
167 lines (167 loc) · 4.5 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./src/tsconfig.json",
"./tests/tsconfig.json",
"./web/tsconfig.json"
]
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"arrow-spacing": [
"warn",
{
"before": true,
"after": true
}
],
"brace-style": [
"warn",
"1tbs",
{
"allowSingleLine": true
}
],
"comma-dangle": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"dot-location": [
"warn",
"property"
],
"eol-last": "warn",
"eqeqeq": "warn",
"func-call-spacing": "warn",
"indent": [
"warn",
"tab",
{
"SwitchCase": 1
}
],
"key-spacing": "warn",
"linebreak-style": [
"warn",
"windows"
],
"new-cap": "warn",
"new-parens": "warn",
"no-alert": "error",
"no-console": "error",
"no-eval": "error",
"no-extra-boolean-cast": "warn",
"no-implied-eval": "error",
"no-irregular-whitespace": "warn",
"no-labels": "error",
"no-multi-spaces": "warn",
"no-proto": "error",
"no-prototype-builtins": "error",
"no-redeclare": "error",
"no-global-assign": "error",
"no-return-await": "warn",
"no-shadow-restricted-names": "error",
"no-script-url": "error",
"no-sparse-arrays": "warn",
"no-throw-literal": "warn",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-unsafe-negation": "warn",
"no-unused-expressions": "warn",
"no-var": "warn",
"no-whitespace-before-property": "warn",
"no-with": "error",
"padded-blocks": [
"warn",
{
"classes": "never",
"switches": "never"
}
],
"quotes": [
"warn",
"single"
],
"rest-spread-spacing": "warn",
"semi": "warn",
"sort-imports": [
"warn",
{
"allowSeparatedGroups": true,
"ignoreDeclarationSort": true
}
],
"space-before-function-paren": [
"warn",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"space-before-blocks": "warn",
"space-infix-ops": "warn",
"spaced-comment": "warn",
"template-curly-spacing": "warn",
"wrap-iife": [
"warn",
"inside"
],
"yoda": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/class-literal-property-style": [
"warn",
"fields"
],
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"overrides": {
"accessors": "off",
"constructors": "off"
}
}
],
"@typescript-eslint/method-signature-style": [
"warn",
"property"
],
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "class",
"format": [
"StrictPascalCase"
]
},
{
"selector": "function",
"format": [
"camelCase"
]
}
],
"@typescript-eslint/no-misused-new": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn"
},
"overrides": [
{
"files": "./src/askpass/*.ts",
"rules": {
"no-console": "off",
"spaced-comment": "off"
}
},
{
"files": "./tests/mocks/*.ts",
"rules": {
"no-global-assign": "off"
}
}
]
}