@@ -53,6 +53,7 @@ const config = {
5353 } ,
5454 plugins : [
5555 '@typescript-eslint' ,
56+ 'import' ,
5657 'jsdoc' ,
5758 'node' ,
5859 'prettier' ,
@@ -171,7 +172,6 @@ const config = {
171172 }
172173 ] ,
173174 '@typescript-eslint/no-dupe-class-members' : 2 ,
174- '@typescript-eslint/no-duplicate-imports' : 2 ,
175175 '@typescript-eslint/no-dynamic-delete' : 2 ,
176176 '@typescript-eslint/no-empty-function' : [
177177 2 ,
@@ -352,7 +352,11 @@ const config = {
352352 2 ,
353353 {
354354 allowAny : false ,
355- checkCompoundAssignments : false
355+ allowBoolean : false ,
356+ allowNullish : false ,
357+ allowNumberAndString : true ,
358+ allowRegExp : false ,
359+ skipCompoundAssignments : true
356360 }
357361 ] ,
358362 '@typescript-eslint/restrict-template-expressions' : [
@@ -366,7 +370,7 @@ const config = {
366370 }
367371 ] ,
368372 '@typescript-eslint/return-await' : [ 2 , 'in-try-catch' ] ,
369- '@typescript-eslint/sort-type-union-intersection-members ' : 2 ,
373+ '@typescript-eslint/sort-type-constituents ' : 2 ,
370374 '@typescript-eslint/strict-boolean-expressions' : [
371375 2 ,
372376 {
@@ -394,6 +398,13 @@ const config = {
394398 '@typescript-eslint/unified-signatures' : 2 ,
395399 'default-param-last' : 0 ,
396400 eqeqeq : 1 ,
401+ 'import/no-duplicates' : [
402+ 2 ,
403+ {
404+ considerQueryString : true ,
405+ 'prefer-inline' : true
406+ }
407+ ] ,
397408 'init-declarations' : 0 ,
398409 'jsdoc/check-access' : 1 ,
399410 'jsdoc/check-alignment' : 1 ,
@@ -417,6 +428,7 @@ const config = {
417428 1 ,
418429 {
419430 definedTags : [
431+ 'decorator' ,
420432 'experimental' ,
421433 'maximum' ,
422434 'minimum' ,
@@ -434,7 +446,6 @@ const config = {
434446 'jsdoc/match-description' : 0 ,
435447 'jsdoc/match-name' : 0 ,
436448 'jsdoc/multiline-blocks' : 1 ,
437- 'jsdoc/newline-after-description' : [ 1 , 'always' ] ,
438449 'jsdoc/no-bad-blocks' : [ 1 , { preventAllMultiAsteriskBlocks : true } ] ,
439450 'jsdoc/no-defaults' : 0 ,
440451 'jsdoc/no-missing-syntax' : 0 ,
@@ -557,9 +568,10 @@ const config = {
557568 1 ,
558569 'any' ,
559570 {
571+ applyToEndTag : true ,
560572 count : 1 ,
561- dropEndLines : true ,
562- noEndLines : false ,
573+ endLines : 0 ,
574+ startLines : 1 ,
563575 tags : { }
564576 }
565577 ] ,
@@ -572,6 +584,7 @@ const config = {
572584 'no-empty-function' : 0 ,
573585 'no-ex-assign' : 0 ,
574586 'no-extra-parens' : 0 ,
587+ 'no-extra-semi' : 0 ,
575588 'no-implied-eval' : 0 ,
576589 'no-invalid-this' : 0 ,
577590 'no-loop-func' : 0 ,
@@ -775,15 +788,8 @@ const config = {
775788 allowArgumentsExplicitlyTypedAsAny : true ,
776789 allowDirectConstAssertionInArrowFunctions : true ,
777790 allowHigherOrderFunctions : false ,
778- allowTypedFunctionExpressions : true ,
779- allowedNames : [ ] ,
780- shouldTrackReferences : true
781- }
782- ] ,
783- '@typescript-eslint/no-implicit-any-catch' : [
784- 2 ,
785- {
786- allowExplicitAny : false
791+ allowTypedFunctionExpressions : false ,
792+ allowedNames : [ ]
787793 }
788794 ] ,
789795 'no-undef' : 0
@@ -836,6 +842,7 @@ const config = {
836842 } ,
837843 plugins : [ 'chai-expect' , 'jest-formatting' ] ,
838844 rules : {
845+ '@typescript-eslint/class-literal-property-style' : 0 ,
839846 '@typescript-eslint/consistent-indexed-object-style' : 0 ,
840847 '@typescript-eslint/no-base-to-string' : 0 ,
841848 '@typescript-eslint/no-empty-function' : 0 ,
@@ -878,6 +885,12 @@ const config = {
878885 '@typescript-eslint/no-redundant-type-constituents' : 0
879886 }
880887 } ,
888+ {
889+ files : [ '**/decorators/*.constraint.ts' , '**/*.decorator.ts' ] ,
890+ rules : {
891+ '@typescript-eslint/ban-types' : 0
892+ }
893+ } ,
881894 {
882895 files : [ '**/enums/*.ts' , '**/interfaces/*.ts' , '**/types/*.ts' ] ,
883896 rules : {
@@ -990,6 +1003,7 @@ const config = {
9901003 '@typescript-eslint/naming-convention' : 0 ,
9911004 '@typescript-eslint/no-base-to-string' : 0 ,
9921005 '@typescript-eslint/no-confusing-void-expression' : 0 ,
1006+ '@typescript-eslint/no-duplicate-type-constituents' : 0 ,
9931007 '@typescript-eslint/no-floating-promises' : 0 ,
9941008 '@typescript-eslint/no-for-in-array' : 0 ,
9951009 '@typescript-eslint/no-implied-eval' : 0 ,
@@ -1006,12 +1020,14 @@ const config = {
10061020 '@typescript-eslint/no-unsafe-argument' : 0 ,
10071021 '@typescript-eslint/no-unsafe-assignment' : 0 ,
10081022 '@typescript-eslint/no-unsafe-call' : 0 ,
1023+ '@typescript-eslint/no-unsafe-enum-comparison' : 0 ,
10091024 '@typescript-eslint/no-unsafe-member-access' : 0 ,
10101025 '@typescript-eslint/no-unsafe-return' : 0 ,
10111026 '@typescript-eslint/no-unused-expressions' : 0 ,
10121027 '@typescript-eslint/non-nullable-type-assertion-style' : 0 ,
10131028 '@typescript-eslint/prefer-includes' : 0 ,
10141029 '@typescript-eslint/prefer-nullish-coalescing' : 0 ,
1030+ '@typescript-eslint/prefer-optional-chain' : 0 ,
10151031 '@typescript-eslint/prefer-readonly' : 0 ,
10161032 '@typescript-eslint/prefer-readonly-parameter-types' : 0 ,
10171033 '@typescript-eslint/prefer-reduce-type-parameter' : 0 ,
@@ -1032,7 +1048,7 @@ const config = {
10321048 }
10331049 } ,
10341050 {
1035- files : '**/*.yml' ,
1051+ files : '**/*.+(yaml| yml) ' ,
10361052 parser : 'yaml-eslint-parser' ,
10371053 plugins : [ 'yml' ] ,
10381054 rules : {
@@ -1151,20 +1167,35 @@ const config = {
11511167 'prettier/prettier' : [ 2 , { } , { usePrettierrc : true } ]
11521168 } ,
11531169 settings : {
1170+ 'import/parsers' : {
1171+ '@typescript-eslint/parser' : [ '.cts' , '.mts' , '.ts' , '.tsx' ]
1172+ } ,
1173+ 'import/resolver' : {
1174+ node : true ,
1175+ typescript : true
1176+ } ,
11541177 jsdoc : {
11551178 augmentsExtendsReplacesDocs : true ,
11561179 ignoreInternal : false ,
11571180 ignorePrivate : false ,
11581181 implementsReplacesDocs : true ,
11591182 overrideReplacesDocs : true ,
11601183 preferredTypes : {
1161- '*' : false
1184+ '*' : false ,
1185+ '.<>' : false ,
1186+ 'Array<>' : { replacement : '[]' } ,
1187+ Object : { replacement : 'object' } ,
1188+ 'Object<>' : { replacement : 'Record<>' } ,
1189+ object : 'object'
11621190 } ,
11631191 structuredTags : {
11641192 const : {
11651193 name : 'namepath-defining' ,
11661194 required : [ 'name' ]
11671195 } ,
1196+ decorator : {
1197+ name : 'none'
1198+ } ,
11681199 enum : {
11691200 name : 'namepath-defining' ,
11701201 required : [ 'name' , 'type' ]
0 commit comments