@@ -41,19 +41,12 @@ const config = {
4141 Chai : 'readonly' ,
4242 Console : 'readonly' ,
4343 JSX : jsx ? 'readonly' : false ,
44- LoadHook : 'readonly' ,
45- LoadHookContext : 'readonly' ,
46- LoadHookResult : 'readonly' ,
47- LoaderHookFormat : 'readonly' ,
48- NodeJS : 'readonly' ,
49- ResolveHook : 'readonly' ,
50- ResolveHookContext : 'readonly' ,
51- ResolveHookResult : 'readonly'
44+ NodeJS : 'readonly'
5245 } ,
5346 parser : '@typescript-eslint/parser' ,
5447 parserOptions : {
5548 extraFileExtensions : [ ] ,
56- project : [ './tsconfig.json' , 'tsconfig.cjs.json' ] ,
49+ project : [ './tsconfig.json' , './ tsconfig.cjs.json' ] ,
5750 sourceType : require ( './package.json' ) . type ,
5851 tsconfigRootDir : process . cwd ( ) ,
5952 warnOnUnsupportedTypeScriptVersion : true
@@ -147,23 +140,15 @@ const config = {
147140 default : {
148141 memberTypes : [
149142 'static-field' ,
150- 'decorated-field' ,
151143 'instance-field' ,
152- 'abstract-field' ,
153144 'constructor' ,
154145 'signature' ,
155146 'static-get' ,
156147 'static-set' ,
157148 'static-method' ,
158- 'decorated-get' ,
159- 'decorated-set' ,
160- 'decorated-method' ,
161149 'instance-get' ,
162150 'instance-set' ,
163- 'instance-method' ,
164- 'abstract-get' ,
165- 'abstract-set' ,
166- 'abstract-method'
151+ 'instance-method'
167152 ] ,
168153 order : 'alphabetically'
169154 }
@@ -431,7 +416,14 @@ const config = {
431416 'jsdoc/check-tag-names' : [
432417 1 ,
433418 {
434- definedTags : [ 'experimental' , 'next' , 'visibleName' ] ,
419+ definedTags : [
420+ 'experimental' ,
421+ 'maximum' ,
422+ 'minimum' ,
423+ 'next' ,
424+ 'packageManager' ,
425+ 'visibleName'
426+ ] ,
435427 jsxTags : false
436428 }
437429 ] ,
@@ -579,6 +571,7 @@ const config = {
579571 'no-empty' : [ 2 , { allowEmptyCatch : true } ] ,
580572 'no-empty-function' : 0 ,
581573 'no-ex-assign' : 0 ,
574+ 'no-extra-parens' : 0 ,
582575 'no-implied-eval' : 0 ,
583576 'no-invalid-this' : 0 ,
584577 'no-loop-func' : 0 ,
@@ -688,7 +681,7 @@ const config = {
688681 ] ,
689682 'unicorn/new-for-builtins' : 2 ,
690683 'unicorn/no-abusive-eslint-disable' : 2 ,
691- 'unicorn/no-array-callback-reference' : 2 ,
684+ 'unicorn/no-array-callback-reference' : 0 ,
692685 'unicorn/no-array-for-each' : 2 ,
693686 'unicorn/no-array-method-this-argument' : 2 ,
694687 'unicorn/no-array-push-push' : 2 ,
@@ -766,14 +759,7 @@ const config = {
766759 'unicorn/relative-url-style' : [ 2 , 'never' ] ,
767760 'unicorn/require-array-join-separator' : 2 ,
768761 'unicorn/require-number-to-fixed-digits-argument' : 2 ,
769- 'unicorn/string-content' : [
770- 2 ,
771- {
772- patterns : {
773- '^http:\\/\\/' : '^https:\\/\\/'
774- }
775- }
776- ] ,
762+ 'unicorn/string-content' : [ 2 , { patterns : { } } ] ,
777763 'unicorn/template-indent' : [ 2 , { indent : 2 } ] ,
778764 'unicorn/text-encoding-identifier-case' : 2 ,
779765 'unicorn/throw-new-error' : 2
@@ -822,8 +808,9 @@ const config = {
822808 }
823809 } ,
824810 {
825- files : '**/__mocks__/*.ts' ,
811+ files : '**/__mocks__/**/* .ts' ,
826812 rules : {
813+ '@typescript-eslint/no-unused-vars' : 0 ,
827814 '@typescript-eslint/require-await' : 0
828815 }
829816 } ,
@@ -853,6 +840,7 @@ const config = {
853840 '@typescript-eslint/no-empty-function' : 0 ,
854841 '@typescript-eslint/no-unused-expressions' : 0 ,
855842 '@typescript-eslint/prefer-ts-expect-error' : 0 ,
843+ '@typescript-eslint/require-await' : 0 ,
856844 '@typescript-eslint/restrict-template-expressions' : 0 ,
857845 '@typescript-eslint/unbound-method' : 0 ,
858846 'chai-expect/missing-assertion' : 2 ,
@@ -886,7 +874,8 @@ const config = {
886874 expectTypeOf : true
887875 } ,
888876 rules : {
889- '@typescript-eslint/ban-types' : 0
877+ '@typescript-eslint/ban-types' : 0 ,
878+ '@typescript-eslint/no-redundant-type-constituents' : 0
890879 }
891880 } ,
892881 {
@@ -1140,13 +1129,17 @@ const config = {
11401129 }
11411130 } ,
11421131 {
1143- files : [ '.github/dependabot.yml' , '.github/workflows/*.yml' ] ,
1132+ files : [
1133+ '.github/dependabot.yml' ,
1134+ '.github/workflows/*.yml' ,
1135+ 'action.yml'
1136+ ] ,
11441137 rules : {
11451138 'yml/sort-keys' : 0
11461139 }
11471140 } ,
11481141 {
1149- files : [ '.github/workflows/no-response-handler .yml' , '.yarnrc.yml' ] ,
1142+ files : [ '.github/workflows/* .yml' , '.yarnrc.yml' ] ,
11501143 rules : {
11511144 'yml/key-name-casing' : 0
11521145 }
@@ -1160,9 +1153,13 @@ const config = {
11601153 settings : {
11611154 jsdoc : {
11621155 augmentsExtendsReplacesDocs : true ,
1156+ ignoreInternal : false ,
11631157 ignorePrivate : false ,
11641158 implementsReplacesDocs : true ,
11651159 overrideReplacesDocs : true ,
1160+ preferredTypes : {
1161+ '*' : false
1162+ } ,
11661163 structuredTags : {
11671164 const : {
11681165 name : 'namepath-defining' ,
@@ -1183,14 +1180,26 @@ const config = {
11831180 name : 'namepath-defining' ,
11841181 required : [ 'type' ]
11851182 } ,
1183+ maximum : {
1184+ name : 'text' ,
1185+ required : [ 'name' ]
1186+ } ,
11861187 member : {
11871188 name : 'namepath-defining' ,
11881189 required : [ 'name' , 'type' ]
11891190 } ,
1191+ minimum : {
1192+ name : 'text' ,
1193+ required : [ 'name' ]
1194+ } ,
11901195 next : {
11911196 name : 'namepath-defining' ,
11921197 required : [ 'type' ]
11931198 } ,
1199+ packageManager : {
1200+ name : 'text' ,
1201+ required : [ 'name' ]
1202+ } ,
11941203 param : {
11951204 name : 'namepath-defining' ,
11961205 required : [ 'name' , 'type' ]
0 commit comments