@@ -143,8 +143,8 @@ export function generatePackageJson({
143
143
overrideJson,
144
144
substitution,
145
145
} : {
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
148
148
substitution : [ string , string ]
149
149
} ) {
150
150
const { viewsContainers, views, commands, menus, submenus, configuration } = contributesSchema . parse ( contributes )
@@ -167,6 +167,7 @@ export function generatePackageJson({
167
167
}
168
168
}
169
169
170
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
170
171
function transformArrayRecord < T > ( obj : Record < string , any [ ] > , from : string , to : string , props : string [ ] ) : T {
171
172
return Object . entries ( obj ) . reduce (
172
173
( acc , [ key , ary ] ) => ( {
@@ -187,13 +188,15 @@ function transformArrayRecord<T>(obj: Record<string, any[]>, from: string, to: s
187
188
)
188
189
}
189
190
191
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
190
192
function transformArray < T > ( arr : any [ ] , from : string , to : string , idProp : string ) : T [ ] {
191
193
return arr . map ( ( { [ idProp ] : id , ...rest } ) => ( {
192
194
[ idProp ] : id . replace ( from , to ) ,
193
195
...rest ,
194
196
} ) )
195
197
}
196
198
199
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
197
200
function transformRecord < T > ( obj : Record < string , any > , from : string , to : string ) : T {
198
201
return Object . entries ( obj ) . reduce (
199
202
( acc , [ key , value ] ) => ( {
0 commit comments