Skip to content

Commit a0ec55e

Browse files
committed
linter
1 parent 2931bb8 commit a0ec55e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/utils/src/node.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export function isNodeEnv(): boolean {
1212
*
1313
* @param request The module path to resolve
1414
*/
15+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
1516
export function dynamicRequire(mod: any, request: string): any {
17+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
1618
return mod.require(request);
1719
}
1820

@@ -22,6 +24,8 @@ export function dynamicRequire(mod: any, request: string): any {
2224
* @param request The module path to resolve
2325
* @param options The resolution options
2426
*/
27+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
2528
export function dynamicResolve(mod: any, request: string, options: Record<string, unknown>): any {
29+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
2630
return mod.require.resolve(request, options);
2731
}

0 commit comments

Comments
 (0)