@@ -143,8 +143,8 @@ export function generatePackageJson({
143143 overrideJson,
144144 substitution,
145145} : {
146- packageJson : Record < string , any >
147- overrideJson : Record < string , any >
146+ packageJson : Record < string , any > // eslint-disable-line @typescript-eslint/no-explicit-any
147+ overrideJson : Record < string , any > // eslint-disable-line @typescript-eslint/no-explicit-any
148148 substitution : [ string , string ]
149149} ) {
150150 const { viewsContainers, views, commands, menus, submenus, configuration } = contributesSchema . parse ( contributes )
@@ -167,6 +167,7 @@ export function generatePackageJson({
167167 }
168168}
169169
170+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
170171function transformArrayRecord < T > ( obj : Record < string , any [ ] > , from : string , to : string , props : string [ ] ) : T {
171172 return Object . entries ( obj ) . reduce (
172173 ( acc , [ key , ary ] ) => ( {
@@ -187,13 +188,15 @@ function transformArrayRecord<T>(obj: Record<string, any[]>, from: string, to: s
187188 )
188189}
189190
191+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
190192function transformArray < T > ( arr : any [ ] , from : string , to : string , idProp : string ) : T [ ] {
191193 return arr . map ( ( { [ idProp ] : id , ...rest } ) => ( {
192194 [ idProp ] : id . replace ( from , to ) ,
193195 ...rest ,
194196 } ) )
195197}
196198
199+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
197200function transformRecord < T > ( obj : Record < string , any > , from : string , to : string ) : T {
198201 return Object . entries ( obj ) . reduce (
199202 ( acc , [ key , value ] ) => ( {
0 commit comments