We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
node:
1 parent 4a2724d commit 8180f01Copy full SHA for 8180f01
packages/module/src/modules/config/generate.ts
@@ -73,9 +73,11 @@ export async function generateESLintConfig(
73
const imports = await Promise.all(importLines.map(async (line): Promise<Import> => {
74
return {
75
...line,
76
- from: (line.from.match(/^\w+:/) || builtinModules.includes(line.from))
77
- ? line.from
78
- : relativeWithDot(await r.resolvePath(line.from)),
+ from: builtinModules.includes(line.from)
+ ? line.from.replace(/^(node:)?/, 'node:')
+ : line.from.match(/^\w+:/)
79
+ ? line.from
80
+ : relativeWithDot(await r.resolvePath(line.from)),
81
}
82
}))
83
0 commit comments