2025 年路线图和 Biome 2.0
今天,我们很高兴与大家分享 Biome 2.0 的计划以及 2025 年的路线图。但在深入探讨未来发展之前,让我们快速回顾一下 2024 年的主要进展。
¥Today we’re happy to share our plans for Biome 2.0 as well as the rest of our roadmap for 2025. But before we dive into what’s coming, let’s do a quick recap of the major developments in 2024.
🎆 总结:Biome 2024 年展望
Section titled “🎆 总结:Biome 2024 年展望”¥🎆 Recap: Biome in 2024
2024 年是 Biome 的辉煌之年。让我们看看发生了什么:
¥2024 was a great year for Biome. Let’s see what happened:
-
我们发布了 4 个新的 “minor” Biome 版本,从 1.6 到 1.9,其中包含许多实用功能:
¥We released 4 new “minor” Biome versions, from 1.6 through 1.9, with plenty of useful features:
-
新增
biome search和biome explain命令,同时大幅扩展了biome migrate命令,以帮助来自 ESLint 和 Prettier 的用户。¥New
biome searchandbiome explaincommands, while thebiome migratecommand was significantly expanded to help users coming from ESLint and Prettier. -
添加了对 CSS 和 GraphQL 格式化和代码检查的支持。
¥Added support for CSS and GraphQL formatting and linting.
-
部分支持 Astro、Svelte 和 Vue 文件。
¥Partial support for Astro, Svelte and Vue files.
-
允许配置文件相互扩展,这在单体仓库和大型组织架构中尤其有用。
¥The ability to let configuration files extend from one another, which is especially useful in monorepo and larger organizational setups.
-
自定义 reporters,以实现更好的 CI 集成和机器可读输出。
¥Custom reporters for better CI integration and machine-readable output.
-
支持
.editorconfig。¥Support for
.editorconfig. -
我们添加了无数新的代码检查规则以及其他各种修复和改进,特别要感谢
useSortedClasses版本,它标志着对 Tailwind 的专门支持正式开启。¥We added countless new lint rules and miscellaneous fixes and improvements, with a special shoutout to
useSortedClassesthat marks the beginning of dedicated Tailwind support.
-
-
我们的 维护团队 团队从 2024 年初的 10 名成员发展到如今的 18 名。
¥Our team of maintainers has grown from 10 members at the start of 2024 to 18 today.
-
我们荣获了 2024 年开源软件奖 的“生产力提升奖”。
¥We won the Productivity Booster award of the OS Awards 2024.
-
我们新增了几个 sponsors 文件。
¥We gained several new sponsors.
-
我们从多个方面改进了 IDE 支持:
¥We improved our IDE support on multiple fronts:
-
项目新增了一个 Zed 扩展。
¥A new Zed extension has been contributed to the project.
-
我们的 VS Code 扩展程序已进行全面改进,目前处于预发布阶段。
¥Our VS Code extension has seen an overhaul that’s currently in Pre-Release.
-
虽然这发生在新年之后,但我们也不应忘记提及我们的 IDEA 插件也进行了重大更新,现在已在 nightly 通道中提供。
¥And even though this happened after the new year, we shouldn’t neglect to mention that our IDEA plugin has seen a major update too, which is now available in the nightly channel.
-
💳 企业支持
Section titled “💳 企业支持”¥💳 Enterprise Support
我们很高兴地宣布,从 2025 年 1 月起,我们也为 Biome 提供 企业支持 支持。希望这能让我们的贡献者们将更多的时间和精力投入到 Biome 的开发中!
¥One more thing that we are happy to announce is that as of January 2025, we are also offering Enterprise Support for Biome. Hopefully this will allow some of our contributors to spend more of their time and effort towards Biome!
⏭️ Biome 2.0
Section titled “⏭️ Biome 2.0”目前,我们的团队正忙于准备 Biome 2.0 的发布。由于我们的项目仍由志愿者贡献者维护,我们无法提供预计完成时间。但我们可以分享一些即将推出的新功能:
¥Right now our team is busy preparing for the Biome 2.0 release. Because our project is still run by volunteer contributors, we do not have an ETA for you. But we can share some of the goodies that will be coming:
-
插件。应用户长期要求,我们在 2024 年 1 月启动的 RFC 流程 版本之后,开始开发 Biome 插件。Biome 2.0 将带来我们努力的初步成果:用户可以使用 GritQL 创建自己的代码检查规则。
¥Plugins. A long-requested feature, we started the development of Biome plugins after an RFC process that started in January 2024. Biome 2.0 will feature the first fruits of this labor: Users will be able to create their own lint rules using GritQL.
-
域名。域名 是一项配置功能,使用户可以轻松启用或禁用与特定字段(例如 React、Next.js 或测试框架)相关的所有规则。它也允许 Biome 根据
package.json中列出的依赖自动启用推荐的特定字段规则。¥Domains. Domains are a configuration feature that makes it easy for users to enable or disable all rules related to a specific domain, such as React, Next.js or testing frameworks. It also allows Biome to automatically enable recommended domain-specific rules based on the dependencies listed in your
package.json. -
Monorepo 支持。虽然我们在
biome.json版本中通过extends功能改进了对 monorepo 的支持,但仍然存在许多不足之处。Biome 2.0 基于内部ProjectLayout改进了架构,应该可以解决大部分问题。¥Monorepo Support. While support for monorepos was already improved with our
extendsfeature inbiome.json, many weak spots remained. Biome 2.0 has an improved architecture based on an internalProjectLayoutthat should resolve most of these. -
抑制项。Biome 已经允许通过使用
// biome-ignore抑制注释来抑制代码检查器的诊断信息。Biome 2.0 新增了对// biome-ignore-all和// biome-ignore-start/biome-ignore-end注释的支持。¥Suppressions. Biome already allowed suppression of linter diagnostics through the use of
// biome-ignoresuppression comments. With Biome 2.0 we’re adding support for// biome-ignore-alland// biome-ignore-start/biome-ignore-endcomments. -
多文件分析。最后,我们将真正的 多文件支持 添加到 Biome 2.0 中。这意味着我们的代码检查规则将能够查询其他文件中的信息,从而实现更强大的代码检查规则。
¥Multi-file analysis. Last but not least, we’re adding true Multi-file support to Biome 2.0. This means that our lint rules will be able to query information from other files, which will enable much more powerful lint rules.
🌌 2025 年路线图
Section titled “🌌 2025 年路线图”¥🌌 2025 roadmap
再次声明:我们是一个社区驱动的项目,因此我们无法承诺提供以下任何功能。但这并不意味着我们没有 2025 年想要实现的功能。 😉
¥Again, we should preface a disclaimer here: We’re a community-driven project, so we cannot promise to deliver any of the features below. But that doesn’t mean we don’t have a wishlist of things we would like to work on in 2025 😉
今年我们将重点关注:
¥This year we will focus on:
-
HTML 支持。任何 Web 工具链都离不开它,我们已经在着手开发了!
¥HTML support. No toolchain for the web is complete without it, and we’re already working on it!
-
嵌入式语言。在 JavaScript 文件的模板字面量中插入 CSS 或 GraphQL 代码片段?HTML 文件中应该使用 JavaScript 还是 CSS?Biome 应该也能处理这些文件,我们将努力实现这一点。这将带来比目前更好的 Astro、Svelte 和 Vue 支持。
¥Embedded languages. CSS or GraphQL snippets inside a template literal in a JavaScript file? JavaScript or CSS inside an HTML file? Biome should be able to handle these as well, and we’ll try to make it happen. This should also lead to better support for Astro, Svelte, and Vue than we have today.
-
类型推断。这原本是我们计划在 2024 年实现的功能,我们正在努力完善多文件分析等先决条件。甚至还有针对
noFloatingPromises规则的 早期概念验证。今年我们希望发布noFloatingPromises的正式版本,并希望能够进一步探索类型推断。¥Type inference. This was already a wish for 2024, and we’re busy filling in the prerequisites such as multi-file analysis. There’s even an early proof-of-concept for a
noFloatingPromisesrule. This year we want to ship a real version ofnoFloatingPromises, and hopefully dabble further into type inference. -
.d.ts 生成。说到类型,我们也想创建我们的第一个转换:从 TypeScript 源文件生成
.d.ts文件。最初,我们只关注使用 隔离模块 的 TypeScript。¥.d.ts generation. While we’re on the subject of types, we would also like to create our first transformation: generating
.d.tsfiles from TypeScript sources. Initially we would only focus on TypeScript using Isolated Modules. -
JSDoc 支持。我们是否也可以使用 JSDoc 注释作为类型信息的来源?如果我们能够进行类型推断,这似乎是一个不容遗漏的机会。
¥JSDoc support. Can we use JSDoc comments as a source of type information too? If we are able to do type inference, this seems an opportunity we cannot pass on.
-
Markdown 支持。有些人使用 已启动 来处理这种情况,如果能支持 已启动,将是一个很好的补充,可以完善我们的语言支持。
¥Markdown support. Some work has already started for it and it would be a nice addition to round out our language support.
-
更多插件。虽然 Biome 2.0 将支持使用 GritQL 创建 lint 规则,但这只是冰山一角。我们知道用户需要更多功能,我们也确实有一些关于更多类型插件的想法。我们将首先收集 2.0 版本的反馈,然后决定插件的开发方向。接下来我们将重点关注以下内容。
¥More plugins. While Biome 2.0 will launch with the ability to create lint rules in GritQL, that’s only the tip of the iceberg. We know our users want more, and we certainly have ideas for more types of plugins. We’ll first collect feedback from the 2.0 release, and then we’ll decide which plugin area we’ll focus on next.
❤️ 你的支持
Section titled “❤️ 你的支持”¥❤️ Your Support
我们衷心感谢所有用户和赞助商在 2024 年的大力支持!没有你们,就没有今天的这个项目。
¥We would like to thank our users and sponsors alike for their amazing support in 2024! Without you, this project would not be what it is today.
希望来年也能得到你的支持。如果你想提供帮助,可以:
¥Hopefully we can also count on your support for the coming year. If you would like to help out, you can:
-
成为贡献者。帮助我们构建这些功能!
¥Become a contributor. Please help us to build those features!
-
赞助商我们。请贵公司赞助我们:Biome 速度极快,可以缩短贵公司的持续集成 (CI) 时间,提高开发者的效率,并节省成本。赞助也能为你的公司带来曝光度。
¥Sponsor us. Ask your company to sponsor us: Biome is so fast that it can reduce your company’s CI times, improve developer productivity, and save money. Sponsorships also create exposure for your company.
-
聘请我们。Biome 是否缺少任何阻碍贵公司采用的功能?你可以聘请我们来实现这一切!任何聘用贡献者为 Biome 工作 3 个月或以上的公司都将自动获得赞助福利。
¥Hire us. Is Biome missing anything that prevents your company from adopting it? You can make it happen by hiring us! Any company that hires a contributor to work on Biome for 3 months or more automatically applies for sponsorship benefits.
-
改进我们的文档。编写指南或示例,或帮助我们更新面向非英语用户的翻译。
¥Improve our documentation. Write guides or recipes, or help to keep our translations up-to-date for non-English speakers.
Biome v2.1 中文网 - 粤ICP备13048890号