Biome 配置生成器
生成 Biome 配置文件 (biome.json) — 格式化程序设置(缩进、行宽、尾随逗号)、linter 规则预设(推荐、严格或关闭)、导入组织以及 JavaScript/TypeScript、JSON 和 CSS 的按语言覆盖。
输入
"latest" 始终解析为最新架构。将其固定到已安装的 Biome 版本(例如 "2.4.13"),以便编辑器针对该版本恰好支持的选项进行验证。
格式化程序
每个缩进级别的空格数 — 仅当 indentStyle 为 "space" 时适用。
Linter
单个箭头函数参数周围的括号。
输出选项
输出
使用此工具的更多方式
REST API
curl -X POST https://api.iotools.cloud/v1/tool/biome-config-generator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"includeSchema": "true",
"schemaVersion": "latest",
"formatterEnabled": "true",
"indentStyle": "tab",
"indentWidth": "2",
"lineWidth": "80",
"lineEnding": "lf",
"linterEnabled": "true",
"linterPreset": "recommended",
"organizeImports": "true",
"quoteStyle": "double",
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": "true",
"bracketSameLine": "",
"jsonFormatterEnabled": "true",
"cssFormatterEnabled": "",
"cssQuoteStyle": "double",
"vcsEnabled": "true",
"vcsUseIgnoreFile": "true",
"includeHeader": "true"
}'替换成您账户中的密钥。工具的字段即为请求体——没有额外包装。
让 AI 代理执行
Use the IOTools `biome-config-generator` tool (Biome Config Generator) on this input:
YOUR_INPUT_HERE将此粘贴给任何已连接 IOTools MCP 服务器的代理,再加上您的输入内容。
嵌入式小组件
<iframe
src="https://iotools.cloud/embed/biome-config-generator/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="Biome 配置生成器 — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>把它放到您自己的页面上——免费,无需密钥,只需保留一个反向链接。
| 每次 API/MCP 调用费用 | 5 积分起 |
|---|---|
| 需要更多积分? | 查看定价 |
也可通过
使用指南
The Biome Config Generator builds a ready-to-use biome.json configuration file from a set of toggles and dropdowns — no need to memorize Biome's nested option names or hand-write valid JSON. Pick your formatter, linter, and per-language settings, then copy or download the file straight into your project root.
What it does
Biome is a fast, all-in-one formatter and linter for JavaScript, TypeScript, JSON, and CSS, but its biome.json has many nested sections — formatter, linter, assist, and per-language javascript/json/css overrides — that are easy to get wrong by hand. This tool assembles a complete, valid config for you. It covers:
- Formatter settings —
indentStyle,indentWidth,lineWidth, andlineEnding. - Linter rule preset — Recommended (Biome's balanced default), Strict (every rule, including nursery/experimental), or Off (formatter only).
- Import organization — the
assist.actions.source.organizeImportstoggle that replaces the old standaloneorganizeImportskey. - JavaScript/TypeScript formatting —
quoteStyle,jsxQuoteStyle,quoteProperties,trailingCommas,semicolons,arrowParentheses,bracketSpacing, andbracketSameLine. - JSON and CSS overrides — enable/disable formatting per language (CSS formatting is opt-in in Biome, off by default).
- VCS integration — hooking Biome into your
.gitignoreso it skips ignored files automatically. $schemainclusion — pin it to your installed Biome version, or leave it at"latest", for IDE autocomplete and validation.
How to use it
- Toggle whether to include the
$schemafield, and set a version if you want it pinned to your installed Biome release. - Adjust the formatter settings — indent style/width, line width, and line endings.
- Pick a linter rule preset.
- Set your JavaScript/TypeScript quote style, trailing commas, semicolons, and bracket spacing.
- Toggle JSON/CSS formatting and VCS integration as needed.
- Copy the generated config or download it as
biome.json, and drop it into your project root.
The output updates instantly as you change any option.
Should I pin the schema version or use "latest"?
"latest" always resolves to the newest schema, which is convenient but can drift ahead of the Biome CLI version actually installed in your project — your editor might suggest options your installed version doesn't support yet. Pinning it to your exact installed version (e.g. "2.4.13") keeps IDE validation in sync with what you're actually running.
Why is CSS formatting off by default?
Biome shipped CSS formatting after JS/JSON support matured, and it's still opt-in so existing projects aren't surprised by a sudden reformat of their stylesheets. Turn it on once you've confirmed the output matches your team's expectations.
Does this replace my Prettier/ESLint config?
Only if you're migrating — Biome bundles a formatter and linter that can replace both, but it doesn't read .prettierrc or .eslintrc files. If you're moving from either, see the Prettier Config Generator or ESLint Config Generator for comparison, and Biome's own migration commands to port existing settings.
Privacy
This generator runs entirely in your browser. Your selections are never uploaded, logged, or stored — the configuration is assembled locally from the options you choose, and nothing leaves your device.