Skip to content

Commit a45b24a

Browse files
prefer-node-protocol: Ignore Bun modules (#2384)
Co-authored-by: fisker Cheung <[email protected]>
1 parent 37e00dd commit a45b24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/prefer-node-protocol.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const create = () => ({
3232
if (
3333
typeof value !== 'string'
3434
|| value.startsWith('node:')
35+
|| /^bun(?::|$)/.test(value)
3536
|| !isBuiltinModule(value)
36-
|| !isBuiltinModule(`node:${value}`)
3737
) {
3838
return;
3939
}

0 commit comments

Comments
 (0)