@enigmatry/eslint-config 1.0.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/index.js +487 -0
- package/package.json +51 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @enigmatry/eslint-config
|
|
2
|
+
|
|
3
|
+
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for the Enigmatry style guide.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
$ npm install --save-dev eslint @enigmatry/eslint-config
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Once the `@enigmatry/eslint-config` package is installed, you can use it by specifying `@enigmatry/eslint-config` in the [`extends`](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
{
|
|
17
|
+
"extends": "@enigmatry/eslint-config",
|
|
18
|
+
"rules": {
|
|
19
|
+
// Additional, per-project rules...
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
Apache-2 © Enigmatry
|
package/index.js
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
module.exports = {
|
|
3
|
+
root: true,
|
|
4
|
+
env: {
|
|
5
|
+
browser: true,
|
|
6
|
+
jest: true,
|
|
7
|
+
node: true
|
|
8
|
+
},
|
|
9
|
+
overrides: [
|
|
10
|
+
{
|
|
11
|
+
files: [ "*.ts" ],
|
|
12
|
+
plugins: [ "@typescript-eslint", "@angular-eslint", "no-loops", "no-secrets", "no-unsanitized", "promise", "unused-imports", "xss" ],
|
|
13
|
+
parser: "@typescript-eslint/parser",
|
|
14
|
+
parserOptions: {
|
|
15
|
+
project: [
|
|
16
|
+
"tsconfig.json",
|
|
17
|
+
"e2e/tsconfig.json"
|
|
18
|
+
],
|
|
19
|
+
createDefaultProgram: true
|
|
20
|
+
},
|
|
21
|
+
extends: [
|
|
22
|
+
"plugin:@angular-eslint/recommended",
|
|
23
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
24
|
+
],
|
|
25
|
+
rules: {
|
|
26
|
+
// The rules below are listed in the order they appear on the eslint
|
|
27
|
+
// rules page. All rules are listed to make it easier to keep in sync
|
|
28
|
+
// as new ESLint rules are added.
|
|
29
|
+
// http://eslint.org/docs/rules/
|
|
30
|
+
"for-direction": "error",
|
|
31
|
+
"getter-return": "error",
|
|
32
|
+
"no-async-promise-executor": "error",
|
|
33
|
+
"no-await-in-loop": "error",
|
|
34
|
+
"no-compare-neg-zero": "error",
|
|
35
|
+
"no-cond-assign": "error",
|
|
36
|
+
"no-console": "error",
|
|
37
|
+
"no-constant-condition": "error",
|
|
38
|
+
"no-control-regex": "error",
|
|
39
|
+
"no-debugger": "error",
|
|
40
|
+
"no-dupe-args": "error",
|
|
41
|
+
"no-dupe-else-if": "error",
|
|
42
|
+
"no-dupe-keys": "error",
|
|
43
|
+
"no-duplicate-case": "error",
|
|
44
|
+
"no-empty": "off",
|
|
45
|
+
"no-empty-character-class": "error",
|
|
46
|
+
"no-ex-assign": "error",
|
|
47
|
+
"no-extra-boolean-cast": "error",
|
|
48
|
+
"no-extra-parens": "off",
|
|
49
|
+
"no-extra-semi": "error",
|
|
50
|
+
"no-func-assign": "error",
|
|
51
|
+
"no-import-assign": "error",
|
|
52
|
+
"no-inner-declarations": "error",
|
|
53
|
+
"no-invalid-regexp": "error",
|
|
54
|
+
"no-irregular-whitespace": "error",
|
|
55
|
+
"no-loss-of-precision": "off",
|
|
56
|
+
"no-misleading-character-class": "error",
|
|
57
|
+
"no-obj-calls": "error",
|
|
58
|
+
"no-promise-executor-return": "error",
|
|
59
|
+
"no-prototype-builtins": "error",
|
|
60
|
+
"no-regex-spaces": "error",
|
|
61
|
+
"no-setter-return": "error",
|
|
62
|
+
"no-sparse-arrays": "error",
|
|
63
|
+
"no-template-curly-in-string": "error",
|
|
64
|
+
"no-unexpected-multiline": "error",
|
|
65
|
+
"no-unreachable": "error",
|
|
66
|
+
"no-unreachable-loop": "error",
|
|
67
|
+
"no-unsafe-finally": "error",
|
|
68
|
+
"no-unsafe-negation": "error",
|
|
69
|
+
"no-unsafe-optional-chaining": "error",
|
|
70
|
+
"no-useless-backreference": "error",
|
|
71
|
+
"require-atomic-updates": "error",
|
|
72
|
+
"use-isnan": "error",
|
|
73
|
+
"valid-typeof": "error",
|
|
74
|
+
"accessor-pairs": "error",
|
|
75
|
+
"array-callback-return": "error",
|
|
76
|
+
"block-scoped-var": "error",
|
|
77
|
+
"class-methods-use-this": "off",
|
|
78
|
+
"complexity": "error",
|
|
79
|
+
"consistent-return": "error",
|
|
80
|
+
"curly": "error",
|
|
81
|
+
"default-case": "warn",
|
|
82
|
+
"default-case-last": "error",
|
|
83
|
+
"default-param-last": "off",
|
|
84
|
+
"dot-location": [ "error", "property" ],
|
|
85
|
+
"dot-notation": "off",
|
|
86
|
+
"eqeqeq": "error",
|
|
87
|
+
"grouped-accessor-pairs": "warn",
|
|
88
|
+
"guard-for-in": "warn",
|
|
89
|
+
"max-classes-per-file": [ "error", 1 ],
|
|
90
|
+
"no-alert": "error",
|
|
91
|
+
"no-caller": "error",
|
|
92
|
+
"no-case-declarations": "error",
|
|
93
|
+
"no-constructor-return": "error",
|
|
94
|
+
"no-div-regex": "error",
|
|
95
|
+
"no-else-return": "error",
|
|
96
|
+
"no-empty-function": "off",
|
|
97
|
+
"no-empty-pattern": "warn",
|
|
98
|
+
"no-eq-null": "error",
|
|
99
|
+
"no-eval": "error",
|
|
100
|
+
"no-extend-native": "error",
|
|
101
|
+
"no-extra-bind": "error",
|
|
102
|
+
"no-extra-label": "error",
|
|
103
|
+
"no-fallthrough": "error",
|
|
104
|
+
"no-floating-decimal": "off",
|
|
105
|
+
"no-global-assign": "error",
|
|
106
|
+
"no-implicit-coercion": "off",
|
|
107
|
+
"no-implicit-globals": "error",
|
|
108
|
+
"no-implied-eval": "off",
|
|
109
|
+
"no-invalid-this": "off",
|
|
110
|
+
"no-iterator": "error",
|
|
111
|
+
"no-labels": "error",
|
|
112
|
+
"no-lone-blocks": "error",
|
|
113
|
+
"no-loop-func": "off",
|
|
114
|
+
"no-magic-numbers": "off",
|
|
115
|
+
"no-multi-spaces": "error",
|
|
116
|
+
"no-multi-str": "warn",
|
|
117
|
+
"no-new": "off",
|
|
118
|
+
"no-new-func": "error",
|
|
119
|
+
"no-new-wrappers": "error",
|
|
120
|
+
"no-nonoctal-decimal-escape": "error",
|
|
121
|
+
"no-octal": "error",
|
|
122
|
+
"no-octal-escape": "error",
|
|
123
|
+
"no-param-reassign": "error",
|
|
124
|
+
"no-proto": "error",
|
|
125
|
+
"no-redeclare": "off",
|
|
126
|
+
"no-restricted-properties": "off",
|
|
127
|
+
"no-return-assign": "off",
|
|
128
|
+
"no-return-await": "off",
|
|
129
|
+
"no-script-url": "error",
|
|
130
|
+
"no-self-assign": "error",
|
|
131
|
+
"no-self-compare": "error",
|
|
132
|
+
"no-sequences": "error",
|
|
133
|
+
"no-throw-literal": "off",
|
|
134
|
+
"no-unmodified-loop-condition": "error",
|
|
135
|
+
"no-unused-expressions": "off",
|
|
136
|
+
"no-unused-labels": "error",
|
|
137
|
+
"no-useless-call": "error",
|
|
138
|
+
"no-useless-catch": "error",
|
|
139
|
+
"no-useless-concat": "error",
|
|
140
|
+
"no-useless-escape": "error",
|
|
141
|
+
"no-useless-return": "error",
|
|
142
|
+
"no-void": "error",
|
|
143
|
+
"no-warning-comments": "warn",
|
|
144
|
+
"no-with": "error",
|
|
145
|
+
"prefer-named-capture-group": "off",
|
|
146
|
+
"prefer-promise-reject-errors": "off",
|
|
147
|
+
"prefer-regex-literals": "off",
|
|
148
|
+
"radix": "error",
|
|
149
|
+
"require-await": "off",
|
|
150
|
+
"require-unicode-regexp": "warn",
|
|
151
|
+
"vars-on-top": "off",
|
|
152
|
+
"wrap-iife": "off",
|
|
153
|
+
"yoda": "warn",
|
|
154
|
+
"strict": "off",
|
|
155
|
+
"init-declarations": "off",
|
|
156
|
+
"no-delete-var": "error",
|
|
157
|
+
"no-label-var": "error",
|
|
158
|
+
"no-restricted-globals": "off",
|
|
159
|
+
"no-shadow": "off",
|
|
160
|
+
"no-shadow-restricted-names": "error",
|
|
161
|
+
"no-undef": "off",
|
|
162
|
+
"no-undef-init": "error",
|
|
163
|
+
"no-undefined": "off",
|
|
164
|
+
"no-unused-vars": "off",
|
|
165
|
+
"no-use-before-define": "off",
|
|
166
|
+
"array-bracket-newline": "off",
|
|
167
|
+
"array-bracket-spacing": [ "error", "never" ],
|
|
168
|
+
"array-element-newline": "off",
|
|
169
|
+
"block-spacing": "error",
|
|
170
|
+
"brace-style": "off",
|
|
171
|
+
"camelcase": "warn",
|
|
172
|
+
"capitalized-comments": "error",
|
|
173
|
+
"comma-dangle": "off",
|
|
174
|
+
"comma-spacing": "off",
|
|
175
|
+
"comma-style": "error",
|
|
176
|
+
"computed-property-spacing": "error",
|
|
177
|
+
"consistent-this": "error",
|
|
178
|
+
"eol-last": "off",
|
|
179
|
+
"func-call-spacing": "off",
|
|
180
|
+
"func-name-matching": "off",
|
|
181
|
+
"func-names": "error",
|
|
182
|
+
"func-style": "error",
|
|
183
|
+
"function-call-argument-newline": "off",
|
|
184
|
+
"function-paren-newline": "off",
|
|
185
|
+
"id-denylist": "off",
|
|
186
|
+
"id-length": [
|
|
187
|
+
"error",
|
|
188
|
+
{
|
|
189
|
+
"min": 1,
|
|
190
|
+
"max": 50
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"id-match": "off",
|
|
194
|
+
"implicit-arrow-linebreak": "off",
|
|
195
|
+
"indent": [ "off", "tab" ],
|
|
196
|
+
"jsx-quotes": "error",
|
|
197
|
+
"key-spacing": "error",
|
|
198
|
+
"keyword-spacing": "off",
|
|
199
|
+
"line-comment-position": "error",
|
|
200
|
+
"linebreak-style": "off",
|
|
201
|
+
"lines-around-comment": [
|
|
202
|
+
"error",
|
|
203
|
+
{
|
|
204
|
+
"allowClassStart": true
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"lines-between-class-members": [
|
|
208
|
+
"off",
|
|
209
|
+
"always",
|
|
210
|
+
{ "exceptAfterSingleLine": true }
|
|
211
|
+
],
|
|
212
|
+
"max-depth": [ "error", 3 ],
|
|
213
|
+
"max-len": [
|
|
214
|
+
"error",
|
|
215
|
+
{
|
|
216
|
+
"code": 120,
|
|
217
|
+
"ignoreComments": true
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"max-lines": [ "error", 150 ],
|
|
221
|
+
"max-lines-per-function": [ "error", 40 ],
|
|
222
|
+
"max-nested-callbacks": [ "error", 3 ],
|
|
223
|
+
"max-params": [ "error", 8 ],
|
|
224
|
+
"max-statements": [ "error", 20 ],
|
|
225
|
+
"max-statements-per-line": "error",
|
|
226
|
+
"multiline-ternary": "off",
|
|
227
|
+
"new-cap": "off",
|
|
228
|
+
"new-parens": "error",
|
|
229
|
+
"newline-per-chained-call": [
|
|
230
|
+
"error",
|
|
231
|
+
{ "ignoreChainWithDepth": 2 }
|
|
232
|
+
],
|
|
233
|
+
"no-array-constructor": "off",
|
|
234
|
+
"no-bitwise": "error",
|
|
235
|
+
"no-continue": "off",
|
|
236
|
+
"no-lonely-if": "error",
|
|
237
|
+
"no-mixed-operators": "off",
|
|
238
|
+
"no-mixed-spaces-and-tabs": "off",
|
|
239
|
+
"no-multi-assign": "error",
|
|
240
|
+
"no-multiple-empty-lines": "error",
|
|
241
|
+
"no-negated-condition": "error",
|
|
242
|
+
"no-nested-ternary": "off",
|
|
243
|
+
"no-new-object": "error",
|
|
244
|
+
"no-plusplus": "off",
|
|
245
|
+
"no-restricted-syntax": "off",
|
|
246
|
+
"no-tabs": "off",
|
|
247
|
+
"no-ternary": "off",
|
|
248
|
+
"no-trailing-spaces": "error",
|
|
249
|
+
"no-underscore-dangle": "off",
|
|
250
|
+
"no-unneeded-ternary": "error",
|
|
251
|
+
"no-whitespace-before-property": "error",
|
|
252
|
+
"nonblock-statement-body-position": [ "error", "below" ],
|
|
253
|
+
"object-curly-newline": "off",
|
|
254
|
+
"object-curly-spacing": "off",
|
|
255
|
+
"object-property-newline": [
|
|
256
|
+
"error",
|
|
257
|
+
{ "allowAllPropertiesOnSameLine": true }
|
|
258
|
+
],
|
|
259
|
+
"one-var": "off",
|
|
260
|
+
"one-var-declaration-per-line": "off",
|
|
261
|
+
"operator-assignment": "error",
|
|
262
|
+
"operator-linebreak": "off",
|
|
263
|
+
"padded-blocks": [ "error", "never" ],
|
|
264
|
+
"padding-line-between-statements": "off",
|
|
265
|
+
"prefer-exponentiation-operator": "off",
|
|
266
|
+
"prefer-object-spread": "off",
|
|
267
|
+
"quote-props": [ "error", "as-needed" ],
|
|
268
|
+
"quotes": "off",
|
|
269
|
+
"semi": "off",
|
|
270
|
+
"semi-spacing": "error",
|
|
271
|
+
"semi-style": "off",
|
|
272
|
+
"sort-keys": "off",
|
|
273
|
+
"sort-vars": "off",
|
|
274
|
+
"space-before-blocks": "error",
|
|
275
|
+
"space-before-function-paren": "off",
|
|
276
|
+
"space-in-parens": "error",
|
|
277
|
+
"space-infix-ops": "off",
|
|
278
|
+
"space-unary-ops": "error",
|
|
279
|
+
"spaced-comment": "error",
|
|
280
|
+
"switch-colon-spacing": "error",
|
|
281
|
+
"template-tag-spacing": "error",
|
|
282
|
+
"unicode-bom": "off",
|
|
283
|
+
"wrap-regex": "off",
|
|
284
|
+
"arrow-body-style": [
|
|
285
|
+
"error",
|
|
286
|
+
"as-needed",
|
|
287
|
+
{ "requireReturnForObjectLiteral": true }
|
|
288
|
+
],
|
|
289
|
+
"arrow-parens": [
|
|
290
|
+
"error",
|
|
291
|
+
"as-needed",
|
|
292
|
+
{ "requireForBlockBody": false }
|
|
293
|
+
],
|
|
294
|
+
"arrow-spacing": "error",
|
|
295
|
+
"constructor-super": "error",
|
|
296
|
+
"generator-star-spacing": "error",
|
|
297
|
+
"no-class-assign": "error",
|
|
298
|
+
"no-confusing-arrow": "off",
|
|
299
|
+
"no-const-assign": "error",
|
|
300
|
+
"no-dupe-class-members": "off",
|
|
301
|
+
"no-duplicate-imports": "off",
|
|
302
|
+
"no-new-symbol": "error",
|
|
303
|
+
"no-restricted-exports": "off",
|
|
304
|
+
"no-restricted-imports": "off",
|
|
305
|
+
"no-this-before-super": "error",
|
|
306
|
+
"no-useless-computed-key": "error",
|
|
307
|
+
"no-useless-constructor": "off",
|
|
308
|
+
"no-useless-rename": "error",
|
|
309
|
+
"no-var": "error",
|
|
310
|
+
"object-shorthand": "error",
|
|
311
|
+
"prefer-arrow-callback": "error",
|
|
312
|
+
"prefer-const": "error",
|
|
313
|
+
"prefer-destructuring": "off",
|
|
314
|
+
"prefer-numeric-literals": "warn",
|
|
315
|
+
"prefer-object-has-own": "off",
|
|
316
|
+
"prefer-rest-params": "error",
|
|
317
|
+
"prefer-spread": "error",
|
|
318
|
+
"prefer-template": "error",
|
|
319
|
+
"require-yield": "error",
|
|
320
|
+
"sort-imports": "off",
|
|
321
|
+
"symbol-description": "error",
|
|
322
|
+
"template-curly-spacing": "error",
|
|
323
|
+
"yield-star-spacing": "error",
|
|
324
|
+
"no-loops/no-loops": 2,
|
|
325
|
+
"no-secrets/no-secrets": [
|
|
326
|
+
"error",
|
|
327
|
+
{ "ignoreContent": [ "__zone_symbol__UNPATCHED_EVENTS" ] }
|
|
328
|
+
],
|
|
329
|
+
"no-unsanitized/method": "error",
|
|
330
|
+
"no-unsanitized/property": "error",
|
|
331
|
+
"promise/always-return": "error",
|
|
332
|
+
"promise/no-return-wrap": [
|
|
333
|
+
"error",
|
|
334
|
+
{ "allowReject": true }
|
|
335
|
+
],
|
|
336
|
+
"promise/param-names": "error",
|
|
337
|
+
"promise/catch-or-return": [
|
|
338
|
+
"error",
|
|
339
|
+
{
|
|
340
|
+
"allowThen": true,
|
|
341
|
+
"terminationMethod": [ "catch", "finally" ]
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"promise/no-native": "off",
|
|
345
|
+
"promise/no-nesting": "off",
|
|
346
|
+
"promise/no-promise-in-callback": "off",
|
|
347
|
+
"promise/no-callback-in-promise": "off",
|
|
348
|
+
"promise/avoid-new": "warn",
|
|
349
|
+
"promise/no-new-statics": "error",
|
|
350
|
+
"promise/no-return-in-finally": "warn",
|
|
351
|
+
"promise/valid-params": "warn",
|
|
352
|
+
"unused-imports/no-unused-imports": "error",
|
|
353
|
+
"unused-imports/no-unused-vars": [
|
|
354
|
+
"warn",
|
|
355
|
+
{
|
|
356
|
+
"vars": "all",
|
|
357
|
+
"varsIgnorePattern": "^_",
|
|
358
|
+
"args": "after-used",
|
|
359
|
+
"argsIgnorePattern": "^_"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
"xss/no-mixed-html": [
|
|
363
|
+
2,
|
|
364
|
+
{
|
|
365
|
+
"htmlVariableRules": [ "AsHtml", "HtmlEncoded/i", "^html$" ],
|
|
366
|
+
"htmlFunctionRules": [ ".asHtml/i", "toHtml" ],
|
|
367
|
+
"functions": {
|
|
368
|
+
"$": {
|
|
369
|
+
"htmlInput": true,
|
|
370
|
+
"safe": [ "document", "this" ]
|
|
371
|
+
},
|
|
372
|
+
".html": {
|
|
373
|
+
"htmlInput": true,
|
|
374
|
+
"htmlOutput": true
|
|
375
|
+
},
|
|
376
|
+
".join": {
|
|
377
|
+
"passthrough": {
|
|
378
|
+
"obj": true,
|
|
379
|
+
"args": true
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"xss/no-location-href-assign": [
|
|
386
|
+
2,
|
|
387
|
+
{
|
|
388
|
+
"escapeFunc": "escapeHref"
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"@typescript-eslint/brace-style": [ "error" ],
|
|
392
|
+
"@typescript-eslint/comma-dangle": [ "error", "never" ],
|
|
393
|
+
"@typescript-eslint/comma-spacing": [ "error" ],
|
|
394
|
+
"@typescript-eslint/consistent-type-exports": [
|
|
395
|
+
"error",
|
|
396
|
+
{
|
|
397
|
+
"fixMixedExportsWithInlineTypeSpecifier": true
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"@typescript-eslint/consistent-type-imports": [ "off" ],
|
|
401
|
+
"@typescript-eslint/default-param-last": [ "error" ],
|
|
402
|
+
"@typescript-eslint/dot-notation": [ "error" ],
|
|
403
|
+
"@typescript-eslint/func-call-spacing": [ "error" ],
|
|
404
|
+
"@typescript-eslint/indent": [ "off", "tab" ],
|
|
405
|
+
"@typescript-eslint/init-declarations": [ "off" ],
|
|
406
|
+
"@typescript-eslint/keyword-spacing": [ "error" ],
|
|
407
|
+
"@typescript-eslint/lines-between-class-members": [
|
|
408
|
+
"error",
|
|
409
|
+
"always",
|
|
410
|
+
{ "exceptAfterSingleLine": true }
|
|
411
|
+
],
|
|
412
|
+
"@typescript-eslint/no-array-constructor": [ "error" ],
|
|
413
|
+
"@typescript-eslint/no-dupe-class-members": [ "error" ],
|
|
414
|
+
"@typescript-eslint/no-duplicate-imports": [ "error" ],
|
|
415
|
+
"@typescript-eslint/no-empty-function": [ "error" ],
|
|
416
|
+
"@typescript-eslint/no-extra-parens": [ "error" ],
|
|
417
|
+
"@typescript-eslint/no-extra-semi": [ "error" ],
|
|
418
|
+
"@typescript-eslint/no-implied-eval": [ "error" ],
|
|
419
|
+
"@typescript-eslint/no-invalid-this": [ "error" ],
|
|
420
|
+
"@typescript-eslint/no-loop-func": [ "error" ],
|
|
421
|
+
"@typescript-eslint/no-loss-of-precision": [ "error" ],
|
|
422
|
+
"@typescript-eslint/no-magic-numbers": [
|
|
423
|
+
"error",
|
|
424
|
+
{
|
|
425
|
+
"ignore": [ 0, 1 ],
|
|
426
|
+
"ignoreArrayIndexes": true,
|
|
427
|
+
"ignoreDefaultValues": true,
|
|
428
|
+
"ignoreEnums": true,
|
|
429
|
+
"ignoreReadonlyClassProperties": true,
|
|
430
|
+
"enforceConst": true
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"@typescript-eslint/no-meaningless-void-operator": [
|
|
434
|
+
"error",
|
|
435
|
+
{
|
|
436
|
+
"checkNever": false
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"@typescript-eslint/no-non-null-assertion": [ "error" ],
|
|
440
|
+
"@typescript-eslint/no-redeclare": [ "error" ],
|
|
441
|
+
"@typescript-eslint/no-restricted-imports": [ "off" ],
|
|
442
|
+
"@typescript-eslint/no-shadow": [ "error" ],
|
|
443
|
+
"@typescript-eslint/no-throw-literal": [ "error" ],
|
|
444
|
+
"@typescript-eslint/no-unused-expressions": [ "error" ],
|
|
445
|
+
"@typescript-eslint/no-unused-vars": [
|
|
446
|
+
"error",
|
|
447
|
+
{ "argsIgnorePattern": "^_" }
|
|
448
|
+
],
|
|
449
|
+
"@typescript-eslint/no-use-before-define": [ "error" ],
|
|
450
|
+
"@typescript-eslint/no-useless-constructor": [ "error" ],
|
|
451
|
+
"@typescript-eslint/object-curly-spacing": [ "error", "always" ],
|
|
452
|
+
"@typescript-eslint/quotes": [
|
|
453
|
+
"error",
|
|
454
|
+
"single",
|
|
455
|
+
{ "allowTemplateLiterals": true }
|
|
456
|
+
],
|
|
457
|
+
"@typescript-eslint/require-await": [ "error" ],
|
|
458
|
+
"@typescript-eslint/return-await": [ "error" ],
|
|
459
|
+
"@typescript-eslint/semi": [ "error" ],
|
|
460
|
+
"@typescript-eslint/space-before-function-paren": [ "error", "never" ],
|
|
461
|
+
"@typescript-eslint/space-infix-ops": [ "error" ],
|
|
462
|
+
"@angular-eslint/component-selector": [
|
|
463
|
+
"error",
|
|
464
|
+
{
|
|
465
|
+
"type": "element",
|
|
466
|
+
"prefix": [ "app", "enigmatry", "appg" ],
|
|
467
|
+
"style": "kebab-case"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"@angular-eslint/directive-selector": [
|
|
471
|
+
"error",
|
|
472
|
+
{
|
|
473
|
+
"type": "attribute",
|
|
474
|
+
"prefix": [ "app", "enigmatry", "appg" ],
|
|
475
|
+
"style": "camelCase"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
files: [ "*.html" ],
|
|
482
|
+
extends: [ "plugin:@angular-eslint/template/recommended" ],
|
|
483
|
+
parser: "@angular-eslint/template-parser",
|
|
484
|
+
plugins: [ "@angular-eslint/template" ]
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@enigmatry/eslint-config",
|
|
3
|
+
"version": "1.0.176",
|
|
4
|
+
"author": "Enigmatry",
|
|
5
|
+
"description": "ESLint shareable config for the Enigmatry style.",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.js"
|
|
9
|
+
],
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"eslint": "8.32.0",
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "5.48.1",
|
|
13
|
+
"@typescript-eslint/parser": "5.48.1",
|
|
14
|
+
"eslint-plugin-import": "2.27.4",
|
|
15
|
+
"eslint-plugin-jsdoc": "39.6.4",
|
|
16
|
+
"eslint-plugin-no-loops": "0.3.0",
|
|
17
|
+
"eslint-plugin-no-secrets": "0.8.9",
|
|
18
|
+
"eslint-plugin-no-unsanitized": "4.0.2",
|
|
19
|
+
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
20
|
+
"eslint-plugin-promise": "6.1.1",
|
|
21
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
22
|
+
"eslint-plugin-xss": "0.1.12",
|
|
23
|
+
"@angular-eslint/builder": "14.0.2",
|
|
24
|
+
"@angular-eslint/eslint-plugin": "14.0.2",
|
|
25
|
+
"@angular-eslint/eslint-plugin-template": "14.0.2",
|
|
26
|
+
"@angular-eslint/schematics": "14.0.2",
|
|
27
|
+
"@angular-eslint/template-parser": "14.0.2"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"eslint": "8.32.0",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "5.48.1",
|
|
32
|
+
"@typescript-eslint/parser": "5.48.1",
|
|
33
|
+
"eslint-plugin-import": "2.27.4",
|
|
34
|
+
"eslint-plugin-jsdoc": "39.6.4",
|
|
35
|
+
"eslint-plugin-no-loops": "0.3.0",
|
|
36
|
+
"eslint-plugin-no-secrets": "0.8.9",
|
|
37
|
+
"eslint-plugin-no-unsanitized": "4.0.2",
|
|
38
|
+
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
39
|
+
"eslint-plugin-promise": "6.1.1",
|
|
40
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
41
|
+
"eslint-plugin-xss": "0.1.12",
|
|
42
|
+
"@angular-eslint/builder": "14.0.2",
|
|
43
|
+
"@angular-eslint/eslint-plugin": "14.0.2",
|
|
44
|
+
"@angular-eslint/eslint-plugin-template": "14.0.2",
|
|
45
|
+
"@angular-eslint/schematics": "14.0.2",
|
|
46
|
+
"@angular-eslint/template-parser": "14.0.2"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|