Search Docs
npm add @empjs/biome-config -D
{ "extends": ["@empjs/biome-config"] }
{ "eslint.enable": false, "editor.codeActionsOnSave": { "quickfix.biome": "explicit", "source.organizeImports.biome": "explicit" }, "[json]": { "editor.defaultFormatter": "biomejs.biome" }, "[jsonc]": { "editor.defaultFormatter": "biomejs.biome" }, "[javascript]": { "editor.defaultFormatter": "biomejs.biome" }, "[typescript]": { "editor.defaultFormatter": "biomejs.biome" }, "[typescriptreact]": { "editor.defaultFormatter": "biomejs.biome" } }
在根目录 .npmrc 加入 public-hoist-pattern[]=*@biomejs/biome*
.npmrc
public-hoist-pattern[]=*@biomejs/biome*
// 项目代码修复 biome lint . --fix // 项目代码检查 biome check .