Skip to content

Commit

Permalink
prefer-node-protocol: Ignore Bun modules (#2384)
Browse files Browse the repository at this point in the history
Co-authored-by: fisker Cheung <lionkay@gmail.com>
  • Loading branch information
SunsetTechuila and fisker authored Jun 21, 2024
1 parent 37e00dd commit a45b24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/prefer-node-protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const create = () => ({
if (
typeof value !== 'string'
|| value.startsWith('node:')
|| /^bun(?::|$)/.test(value)
|| !isBuiltinModule(value)
|| !isBuiltinModule(`node:${value}`)
) {
return;
}
Expand Down

0 comments on commit a45b24a

Please sign in to comment.