@@ -53,6 +53,7 @@ const config = {
53
53
} ,
54
54
plugins : [
55
55
'@typescript-eslint' ,
56
+ 'import' ,
56
57
'jsdoc' ,
57
58
'node' ,
58
59
'prettier' ,
@@ -171,7 +172,6 @@ const config = {
171
172
}
172
173
] ,
173
174
'@typescript-eslint/no-dupe-class-members' : 2 ,
174
- '@typescript-eslint/no-duplicate-imports' : 2 ,
175
175
'@typescript-eslint/no-dynamic-delete' : 2 ,
176
176
'@typescript-eslint/no-empty-function' : [
177
177
2 ,
@@ -246,7 +246,7 @@ const config = {
246
246
allowedNames : [ 'self' ]
247
247
}
248
248
] ,
249
- '@typescript-eslint/no-throw-literal' : 0 ,
249
+ '@typescript-eslint/no-throw-literal' : 2 ,
250
250
'@typescript-eslint/no-type-alias' : 0 ,
251
251
'@typescript-eslint/no-unnecessary-boolean-literal-compare' : [
252
252
2 ,
@@ -352,7 +352,11 @@ const config = {
352
352
2 ,
353
353
{
354
354
allowAny : false ,
355
- checkCompoundAssignments : false
355
+ allowBoolean : false ,
356
+ allowNullish : false ,
357
+ allowNumberAndString : true ,
358
+ allowRegExp : false ,
359
+ skipCompoundAssignments : true
356
360
}
357
361
] ,
358
362
'@typescript-eslint/restrict-template-expressions' : [
@@ -366,7 +370,7 @@ const config = {
366
370
}
367
371
] ,
368
372
'@typescript-eslint/return-await' : [ 2 , 'in-try-catch' ] ,
369
- '@typescript-eslint/sort-type-union-intersection-members ' : 2 ,
373
+ '@typescript-eslint/sort-type-constituents ' : 2 ,
370
374
'@typescript-eslint/strict-boolean-expressions' : [
371
375
2 ,
372
376
{
@@ -394,6 +398,13 @@ const config = {
394
398
'@typescript-eslint/unified-signatures' : 2 ,
395
399
'default-param-last' : 0 ,
396
400
eqeqeq : 1 ,
401
+ 'import/no-duplicates' : [
402
+ 2 ,
403
+ {
404
+ considerQueryString : true ,
405
+ 'prefer-inline' : true
406
+ }
407
+ ] ,
397
408
'init-declarations' : 0 ,
398
409
'jsdoc/check-access' : 1 ,
399
410
'jsdoc/check-alignment' : 1 ,
@@ -417,6 +428,7 @@ const config = {
417
428
1 ,
418
429
{
419
430
definedTags : [
431
+ 'decorator' ,
420
432
'experimental' ,
421
433
'maximum' ,
422
434
'minimum' ,
@@ -434,7 +446,6 @@ const config = {
434
446
'jsdoc/match-description' : 0 ,
435
447
'jsdoc/match-name' : 0 ,
436
448
'jsdoc/multiline-blocks' : 1 ,
437
- 'jsdoc/newline-after-description' : [ 1 , 'always' ] ,
438
449
'jsdoc/no-bad-blocks' : [ 1 , { preventAllMultiAsteriskBlocks : true } ] ,
439
450
'jsdoc/no-defaults' : 0 ,
440
451
'jsdoc/no-missing-syntax' : 0 ,
@@ -557,9 +568,10 @@ const config = {
557
568
1 ,
558
569
'any' ,
559
570
{
571
+ applyToEndTag : true ,
560
572
count : 1 ,
561
- dropEndLines : true ,
562
- noEndLines : false ,
573
+ endLines : 0 ,
574
+ startLines : 1 ,
563
575
tags : { }
564
576
}
565
577
] ,
@@ -572,6 +584,7 @@ const config = {
572
584
'no-empty-function' : 0 ,
573
585
'no-ex-assign' : 0 ,
574
586
'no-extra-parens' : 0 ,
587
+ 'no-extra-semi' : 0 ,
575
588
'no-implied-eval' : 0 ,
576
589
'no-invalid-this' : 0 ,
577
590
'no-loop-func' : 0 ,
@@ -774,15 +787,8 @@ const config = {
774
787
allowArgumentsExplicitlyTypedAsAny : true ,
775
788
allowDirectConstAssertionInArrowFunctions : true ,
776
789
allowHigherOrderFunctions : false ,
777
- allowTypedFunctionExpressions : true ,
778
- allowedNames : [ ] ,
779
- shouldTrackReferences : true
780
- }
781
- ] ,
782
- '@typescript-eslint/no-implicit-any-catch' : [
783
- 2 ,
784
- {
785
- allowExplicitAny : false
790
+ allowTypedFunctionExpressions : false ,
791
+ allowedNames : [ ]
786
792
}
787
793
] ,
788
794
'no-undef' : 0
@@ -835,6 +841,7 @@ const config = {
835
841
} ,
836
842
plugins : [ 'chai-expect' , 'jest-formatting' ] ,
837
843
rules : {
844
+ '@typescript-eslint/class-literal-property-style' : 0 ,
838
845
'@typescript-eslint/consistent-indexed-object-style' : 0 ,
839
846
'@typescript-eslint/no-base-to-string' : 0 ,
840
847
'@typescript-eslint/no-empty-function' : 0 ,
@@ -877,6 +884,12 @@ const config = {
877
884
'@typescript-eslint/no-redundant-type-constituents' : 0
878
885
}
879
886
} ,
887
+ {
888
+ files : [ '**/decorators/*.constraint.ts' , '**/*.decorator.ts' ] ,
889
+ rules : {
890
+ '@typescript-eslint/ban-types' : 0
891
+ }
892
+ } ,
880
893
{
881
894
files : [ '**/enums/*.ts' , '**/interfaces/*.ts' , '**/types/*.ts' ] ,
882
895
rules : {
@@ -989,13 +1002,15 @@ const config = {
989
1002
'@typescript-eslint/naming-convention' : 0 ,
990
1003
'@typescript-eslint/no-base-to-string' : 0 ,
991
1004
'@typescript-eslint/no-confusing-void-expression' : 0 ,
1005
+ '@typescript-eslint/no-duplicate-type-constituents' : 0 ,
992
1006
'@typescript-eslint/no-floating-promises' : 0 ,
993
1007
'@typescript-eslint/no-for-in-array' : 0 ,
994
1008
'@typescript-eslint/no-implied-eval' : 0 ,
995
1009
'@typescript-eslint/no-meaningless-void-operator' : 0 ,
996
1010
'@typescript-eslint/no-misused-promises' : 0 ,
997
1011
'@typescript-eslint/no-mixed-enums' : 0 ,
998
1012
'@typescript-eslint/no-redundant-type-constituents' : 0 ,
1013
+ '@typescript-eslint/no-throw-literal' : 0 ,
999
1014
'@typescript-eslint/no-unnecessary-boolean-literal-compare' : 0 ,
1000
1015
'@typescript-eslint/no-unnecessary-condition' : 0 ,
1001
1016
'@typescript-eslint/no-unnecessary-qualifier' : 0 ,
@@ -1004,12 +1019,14 @@ const config = {
1004
1019
'@typescript-eslint/no-unsafe-argument' : 0 ,
1005
1020
'@typescript-eslint/no-unsafe-assignment' : 0 ,
1006
1021
'@typescript-eslint/no-unsafe-call' : 0 ,
1022
+ '@typescript-eslint/no-unsafe-enum-comparison' : 0 ,
1007
1023
'@typescript-eslint/no-unsafe-member-access' : 0 ,
1008
1024
'@typescript-eslint/no-unsafe-return' : 0 ,
1009
1025
'@typescript-eslint/no-unused-expressions' : 0 ,
1010
1026
'@typescript-eslint/non-nullable-type-assertion-style' : 0 ,
1011
1027
'@typescript-eslint/prefer-includes' : 0 ,
1012
1028
'@typescript-eslint/prefer-nullish-coalescing' : 0 ,
1029
+ '@typescript-eslint/prefer-optional-chain' : 0 ,
1013
1030
'@typescript-eslint/prefer-readonly' : 0 ,
1014
1031
'@typescript-eslint/prefer-readonly-parameter-types' : 0 ,
1015
1032
'@typescript-eslint/prefer-reduce-type-parameter' : 0 ,
@@ -1030,7 +1047,7 @@ const config = {
1030
1047
}
1031
1048
} ,
1032
1049
{
1033
- files : '**/*.yml' ,
1050
+ files : '**/*.+(yaml| yml) ' ,
1034
1051
parser : 'yaml-eslint-parser' ,
1035
1052
plugins : [ 'yml' ] ,
1036
1053
rules : {
@@ -1149,20 +1166,35 @@ const config = {
1149
1166
'prettier/prettier' : [ 2 , { } , { usePrettierrc : true } ]
1150
1167
} ,
1151
1168
settings : {
1169
+ 'import/parsers' : {
1170
+ '@typescript-eslint/parser' : [ '.cts' , '.mts' , '.ts' , '.tsx' ]
1171
+ } ,
1172
+ 'import/resolver' : {
1173
+ node : true ,
1174
+ typescript : true
1175
+ } ,
1152
1176
jsdoc : {
1153
1177
augmentsExtendsReplacesDocs : true ,
1154
1178
ignoreInternal : false ,
1155
1179
ignorePrivate : false ,
1156
1180
implementsReplacesDocs : true ,
1157
1181
overrideReplacesDocs : true ,
1158
1182
preferredTypes : {
1159
- '*' : false
1183
+ '*' : false ,
1184
+ '.<>' : false ,
1185
+ 'Array<>' : { replacement : '[]' } ,
1186
+ Object : { replacement : 'object' } ,
1187
+ 'Object<>' : { replacement : 'Record<>' } ,
1188
+ object : 'object'
1160
1189
} ,
1161
1190
structuredTags : {
1162
1191
const : {
1163
1192
name : 'namepath-defining' ,
1164
1193
required : [ 'name' ]
1165
1194
} ,
1195
+ decorator : {
1196
+ name : 'none'
1197
+ } ,
1166
1198
enum : {
1167
1199
name : 'namepath-defining' ,
1168
1200
required : [ 'name' , 'type' ]
0 commit comments