@4399ywkf/biome-config
v1.1.0
Published
Biome shared config for 4399ywkf projects (formatting aligned with @4399ywkf/prettier-config)
Downloads
309
Readme
@4399ywkf/biome-config
4399ywkf 的 Biome 共享配置。lint 规则沿用 @4399ywkf/core 原有的 biome.json;格式化与 @4399ywkf/prettier-config 对齐(单引号、行宽 100、尾逗号、箭头函数参数带括号、LF),已经用 Prettier 格式化过的代码再跑 Biome 不会变化。
pnpm add -D @biomejs/biome @4399ywkf/biome-configbiome.json:
{
"extends": ["@4399ywkf/biome-config"]
}推荐新项目使用 @4399ywkf/lint(ESLint + Prettier,规则与 lobe-lint 一致);本包给需要 Biome 工具链的项目使用。Biome 的 lint 规则集与 ESLint 不同,两者无法做到规则一致。
差异:Prettier 的 quoteProps: consistent 在 Biome 中没有对应选项,这里用 quoteProperties: preserve,保留已有写法。
