@c14l/biome-config

中文文档
2.0.0发布于 2025/08/20WTFPLCommonJS零依赖近 30 天下载 2582

A minimalist yet strict Biome configuration

原始使用文档
文档目录4 节
  1. installation
  2. usage
  3. editor integration
  4. VS Code / Cursor

biome minimalist config

a minimalist Biome configuration i use in my projects with rather strict linting and formatting rules, as an alternative to ESLint and Prettier.

installation

# using bun
bun add --dev --exact @c14l/biome-config @biomejs/biome

usage

after installation, create a biome.json file in your project root and extend this configuration:

{
  "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
  "extends": ["@c14l/biome-config"]
}

you can also override specific settings:

{
  "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
  "extends": ["@c14l/biome-config"],
  "formatter": {
    "indentStyle": "tab"
  }
}

editor integration

VS Code / Cursor

for the best experience in VS Code or Cursor, add these settings to your settings.json:

{
  "[javascript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescript]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[json]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "biomejs.biome"
  },
  "typescript.tsdk": "node_modules/typescript/lib",
  "editor.codeActionsOnSave": {
    "source.action.useSortedAttributes.biome": "explicit", // sorts imports on save
    "source.action.useSortedKeys.biome": "explicit", // sorts object keys on save
    "source.fixAll.biome": "explicit", // fixes all errors on save
    "source.organizeImports.biome": "explicit" // sorts imports on save
  }
}

make sure to install the Biome extension for VS Code.

you can also enable format on save with:

{
  "editor.formatOnSave": true
}

版本与发布记录

@c14l/biome-config 共发布 2 个版本,首次发布于 2025/03/06;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.0latest2025/08/201.2 年前
1.0.02025/03/061.7 年前

关于 @c14l/biome-config 的常见问题

@c14l/biome-config 是什么?

A minimalist yet strict Biome configuration

如何安装 @c14l/biome-config?

在项目目录运行 npm install @c14l/biome-config,或使用 pnpm add / yarn add / bun add。

@c14l/biome-config 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/c14l__biome-config 是否存在。

@c14l/biome-config 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@c14l/biome-config 可以商用吗?

@c14l/biome-config 使用 WTFPL 许可。声明的许可为 WTFPL,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@c14l/biome-config 的下载量有多少?

根据 npm 官方下载统计,@c14l/biome-config 在 2026/10/09 – 2026/11/07 这 30 天内被下载 2,582 次,日均约 86 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@c14l/biome-config 还在维护吗?

最新版本 2.0.0 发布于 2025/08/20(1.2 年前);至今共发布 2 个版本,其中过去 12 个月发布了 0 个;首次发布于 2025/03/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。