这是我的配置:
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"files": {
"ignore": ["./.next/server", "./.next/static"]
}
}
当我运行 lint 时,它都是绿色的,即使在我的文件 index.js 中我已经声明了分配给不存在的函数的变量:
const test = myFunction(); // Cannot find name "myFunction" Did you mean "Function"?
index.js 文件也突出显示为红色,但 linter 仍然运行且没有错误。我尝试打破文档中提到的不同规则,但没有一个打破我的 linter:
biome lint .