## 事象 以下のようなコードに対して ```ts import { readFileSync } from "fs"; ``` 以下のリントエラー。 ```error A Node.js builtin module should be imported with the node: protocol. [lint/style/useNodejsImportProtocol] ``` ## 原因 プロジェクトでは[[Node.js]]が利用されていないため。([[Bun]]使っているので問題はない) ## 解決方法 設定で`useNodejsImportProtocol`を無効化する。 `biome.json` ```json { "linter": { "enabled": true, "rules": { "recommended": true, "style": { "useNodejsImportProtocol": "off" } } } } ```