@newsteam/eslint-config 0.0.153 → 0.0.155
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/lib/cjs/plugins/typescript.d.ts +1 -1
- package/lib/cjs/plugins/typescript.js +39 -12
- package/package.json +13 -13
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
|
18
18
|
assertionStyle: string;
|
|
19
19
|
objectLiteralTypeAssertions: string;
|
|
20
20
|
})[];
|
|
21
|
-
"@typescript-eslint/consistent-type-definitions": string
|
|
21
|
+
"@typescript-eslint/consistent-type-definitions": string;
|
|
22
22
|
"@typescript-eslint/consistent-type-exports": string;
|
|
23
23
|
"@typescript-eslint/consistent-type-imports": string;
|
|
24
24
|
"@typescript-eslint/default-param-last": string;
|
|
@@ -123,12 +123,11 @@ var rules = {
|
|
|
123
123
|
/*
|
|
124
124
|
* Consistent with type definition either interface or type
|
|
125
125
|
*
|
|
126
|
+
* There are pros and cons of both - not going to force this for now
|
|
127
|
+
*
|
|
126
128
|
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md
|
|
127
129
|
*/
|
|
128
|
-
"@typescript-eslint/consistent-type-definitions":
|
|
129
|
-
"error",
|
|
130
|
-
"interface"
|
|
131
|
-
],
|
|
130
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
132
131
|
/*
|
|
133
132
|
* Enforces consistent usage of type exports
|
|
134
133
|
*
|
|
@@ -300,44 +299,57 @@ var rules = {
|
|
|
300
299
|
"error",
|
|
301
300
|
{
|
|
302
301
|
default: [
|
|
302
|
+
// Index signature
|
|
303
303
|
"signature",
|
|
304
|
+
"call-signature",
|
|
304
305
|
// Fields
|
|
305
306
|
"public-static-field",
|
|
306
307
|
"protected-static-field",
|
|
307
308
|
"private-static-field",
|
|
309
|
+
"#private-static-field",
|
|
308
310
|
"public-decorated-field",
|
|
309
311
|
"protected-decorated-field",
|
|
310
312
|
"private-decorated-field",
|
|
311
313
|
"public-instance-field",
|
|
312
314
|
"protected-instance-field",
|
|
313
315
|
"private-instance-field",
|
|
316
|
+
"#private-instance-field",
|
|
314
317
|
"public-abstract-field",
|
|
315
318
|
"protected-abstract-field",
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
"
|
|
320
|
-
"
|
|
319
|
+
"public-field",
|
|
320
|
+
"protected-field",
|
|
321
|
+
"private-field",
|
|
322
|
+
"#private-field",
|
|
323
|
+
"static-field",
|
|
324
|
+
"instance-field",
|
|
325
|
+
"abstract-field",
|
|
326
|
+
"decorated-field",
|
|
327
|
+
"field",
|
|
328
|
+
// Static initialization
|
|
329
|
+
"static-initialization",
|
|
321
330
|
// Constructors
|
|
322
331
|
"public-constructor",
|
|
323
332
|
"protected-constructor",
|
|
324
333
|
"private-constructor",
|
|
334
|
+
"constructor",
|
|
325
335
|
// Getters
|
|
326
336
|
"public-static-get",
|
|
327
337
|
"protected-static-get",
|
|
328
338
|
"private-static-get",
|
|
339
|
+
"#private-static-get",
|
|
329
340
|
"public-decorated-get",
|
|
330
341
|
"protected-decorated-get",
|
|
331
342
|
"private-decorated-get",
|
|
332
343
|
"public-instance-get",
|
|
333
344
|
"protected-instance-get",
|
|
334
345
|
"private-instance-get",
|
|
346
|
+
"#private-instance-get",
|
|
335
347
|
"public-abstract-get",
|
|
336
348
|
"protected-abstract-get",
|
|
337
|
-
"private-abstract-get",
|
|
338
349
|
"public-get",
|
|
339
350
|
"protected-get",
|
|
340
351
|
"private-get",
|
|
352
|
+
"#private-get",
|
|
341
353
|
"static-get",
|
|
342
354
|
"instance-get",
|
|
343
355
|
"abstract-get",
|
|
@@ -347,18 +359,20 @@ var rules = {
|
|
|
347
359
|
"public-static-set",
|
|
348
360
|
"protected-static-set",
|
|
349
361
|
"private-static-set",
|
|
362
|
+
"#private-static-set",
|
|
350
363
|
"public-decorated-set",
|
|
351
364
|
"protected-decorated-set",
|
|
352
365
|
"private-decorated-set",
|
|
353
366
|
"public-instance-set",
|
|
354
367
|
"protected-instance-set",
|
|
355
368
|
"private-instance-set",
|
|
369
|
+
"#private-instance-set",
|
|
356
370
|
"public-abstract-set",
|
|
357
371
|
"protected-abstract-set",
|
|
358
|
-
"private-abstract-set",
|
|
359
372
|
"public-set",
|
|
360
373
|
"protected-set",
|
|
361
374
|
"private-set",
|
|
375
|
+
"#private-set",
|
|
362
376
|
"static-set",
|
|
363
377
|
"instance-set",
|
|
364
378
|
"abstract-set",
|
|
@@ -368,12 +382,25 @@ var rules = {
|
|
|
368
382
|
"public-static-method",
|
|
369
383
|
"protected-static-method",
|
|
370
384
|
"private-static-method",
|
|
385
|
+
"#private-static-method",
|
|
371
386
|
"public-decorated-method",
|
|
372
387
|
"protected-decorated-method",
|
|
373
388
|
"private-decorated-method",
|
|
374
389
|
"public-instance-method",
|
|
375
390
|
"protected-instance-method",
|
|
376
|
-
"private-instance-method"
|
|
391
|
+
"private-instance-method",
|
|
392
|
+
"#private-instance-method",
|
|
393
|
+
"public-abstract-method",
|
|
394
|
+
"protected-abstract-method",
|
|
395
|
+
"public-method",
|
|
396
|
+
"protected-method",
|
|
397
|
+
"private-method",
|
|
398
|
+
"#private-method",
|
|
399
|
+
"static-method",
|
|
400
|
+
"instance-method",
|
|
401
|
+
"abstract-method",
|
|
402
|
+
"decorated-method",
|
|
403
|
+
"method"
|
|
377
404
|
]
|
|
378
405
|
}
|
|
379
406
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.155",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"types": "./lib/cjs/index.d.ts",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@newsteam/jasmine": "0.0.42",
|
|
50
50
|
"@types/eslint": "8.4.10",
|
|
51
51
|
"@types/modernizr": "3.5.3",
|
|
52
|
-
"@types/node": "18.11.
|
|
53
|
-
"@types/react": "18.0.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
55
|
-
"@typescript-eslint/parser": "5.
|
|
56
|
-
"eslint": "8.
|
|
52
|
+
"@types/node": "18.11.12",
|
|
53
|
+
"@types/react": "18.0.26",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "5.46.0",
|
|
55
|
+
"@typescript-eslint/parser": "5.46.0",
|
|
56
|
+
"eslint": "8.29.0",
|
|
57
57
|
"eslint-find-rules": "4.1.0",
|
|
58
58
|
"eslint-import-resolver-typescript": "3.5.2",
|
|
59
59
|
"eslint-plugin-array-func": "3.1.7",
|
|
@@ -78,16 +78,16 @@
|
|
|
78
78
|
"eslint-plugin-react-perf": "3.3.1",
|
|
79
79
|
"eslint-plugin-security": "1.5.0",
|
|
80
80
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
81
|
-
"eslint-plugin-unicorn": "45.0.
|
|
81
|
+
"eslint-plugin-unicorn": "45.0.1",
|
|
82
82
|
"json-schema": "0.4.0",
|
|
83
83
|
"postcss-nesting": "10.2.0",
|
|
84
84
|
"react": "18.2.0",
|
|
85
|
-
"typescript": "4.9.
|
|
85
|
+
"typescript": "4.9.4"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
89
|
-
"@typescript-eslint/parser": "5.
|
|
90
|
-
"eslint": "8.
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "5.46.0",
|
|
89
|
+
"@typescript-eslint/parser": "5.46.0",
|
|
90
|
+
"eslint": "8.29.0",
|
|
91
91
|
"eslint-plugin-array-func": "3.1.7",
|
|
92
92
|
"eslint-plugin-css-modules": "2.11.0",
|
|
93
93
|
"eslint-plugin-es": "4.1.0",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"eslint-plugin-react-perf": "3.3.1",
|
|
110
110
|
"eslint-plugin-security": "1.5.0",
|
|
111
111
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
112
|
-
"eslint-plugin-unicorn": "45.0.
|
|
112
|
+
"eslint-plugin-unicorn": "45.0.1",
|
|
113
113
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
|
114
114
|
"json-schema": "0.4.0",
|
|
115
|
-
"typescript": "4.9.
|
|
115
|
+
"typescript": "4.9.4"
|
|
116
116
|
}
|
|
117
117
|
}
|