ESLint 2025 年回顾

2025年,ESLint 扩展到了 CSS 和 HTML,引入了多线程 linting,并迈出了通向 v10.0.0 的第一步。

2025年的计划是以2024年推出的语言插件为基础,并启动期待已久的核心重写。我们花了一年时间扩展官方语言支持,包括CSS和HTML,通过多线程Linting引入了显著的性能改进,并为下一个主要版本ESLint v10.0.0做准备。

🌐 The plan for 2025 was to build upon the foundation of language plugins introduced in 2024 and to start the long-awaited core rewrite. We spent the year expanding our official language support to include CSS and HTML, introducing significant performance improvements through multithreaded linting, and preparing for the next major version, ESLint v10.0.0.

扩展语言支持:CSS 和 HTML

🌐 Expanding language support: CSS and HTML

ESLint logo on the projector screen at Google I/O

在 2024 年发布对 JSON 和 Markdown 的支持之后,我们继续致力于将 ESLint 打造成真正的语言无关的代码检查工具。二月份,我们通过 @eslint/css 插件发布了官方 CSS 支持,允许用户使用相同熟悉的配置系统对他们的样式表进行检查。

🌐 Following the release of JSON and Markdown support in 2024, we continued our mission to make ESLint a truly language-agnostic linter. In February, we released official CSS support via the @eslint/css plugin, allowing users to lint their stylesheets with the same familiar configuration system.

在五月,我们很高兴地宣布 html-eslint 已经 加入 ESLint 生态系统 作为一种语言插件,为项目带来了强大的 HTML 检查功能。这些新增功能意味着 ESLint 现在可以正式用于检查网页的“三大要素”:JavaScript、CSS 和 HTML。

🌐 In May, we were excited to announce that html-eslint had joined the ESLint ecosystem as a language plugin, bringing robust HTML linting to the project. These additions mean that ESLint can now officially be used to lint the “big three” of the web: JavaScript, CSS, and HTML.

ESLint 新的 CSS 和 HTML 支持在 Google I/O 上的 三场 不同的 演讲 中以及在 Chrome 博客 上都得到了重点介绍。

🌐 ESLint’s new CSS and HTML support were highlighted in three different talks at Google I/O as well as on the Chrome blog.

ESLint 继续增长

🌐 ESLint continues to grow

2025 年下载量 - 汇总如下

ESLint 的使用在 2025 年继续保持快速增长。我们以每周 42,717,190 次 npm 下载开始这一年,到了年底,每周下载量激增至 70,713,031 次——在短短十二个月内增长了 65%。到年底,ESLint 在 2025 年的总下载量已达到 2,964,923,725 次,这充分证明了它在现代网络开发生态系统中所扮演的关键角色。

🌐 ESLint’s usage continued its relentless climb in 2025. We started the year with 42,717,190 weekly npm downloads and ended with a staggering 70,713,031 weekly downloads—a 65% increase in just twelve months. By the end of the year, ESLint had reached 2,964,923,725 total downloads for 2025 alone, a testament to the critical role it plays in the modern web development ecosystem.

注意: 年初和年末下载量的下降是正常的季节性下降,所有套餐在节假日期间都会出现这种情况。

2025 Release Line Downloads - Summarized below

v9.x 版本系列的下载量随着生态系统从 v8.x 升级而持续增长。到 2025 年底和 2026 年初,v9.x 版本系列的每周下载量超过 3600 万,占我们每周下载量的一半以上。v8.x 版本系列仍然很受欢迎,每周下载量超过 2600 万。

🌐 Downloads for the v9.x release line continue to grow as the ecosystem upgrades from v8.x. By the end of 2025 and beginning of 2026, weekly downloads for the v9.x release line topped 36 million, more than half of our weekly downloads. The v8.x release line is still popular with over 26 million weekly downloads.

与人工智能整合

🌐 Integrating with AI

随着人工智能在2025年成为开发工作流程的一个核心部分,我们努力确保 ESLint 仍然是该体验的重要组成部分。11 月,GitHub 宣布 ESLint 现已与 Copilot 代码审查集成 并进入公开预览阶段。这一集成允许 Copilot 在代码审查过程中直接显示 ESLint 违规情况,帮助开发者在代码合并前发现问题。

🌐 As AI became an integral part of the development workflow in 2025, we worked to ensure that ESLint remains a key part of that experience. In November, GitHub announced that ESLint is now integrated with Copilot code review in public preview. This integration allows Copilot to surface ESLint violations directly during the code review process, helping developers catch issues before they are merged.

我们还通过发布 @eslint/mcp 包采用了 模型上下文协议 (MCP)。这个 MCP 服务器允许 AI 模型(例如 VS Code 的 Copilot 中使用的模型)直接与 ESLint 交互。通过为 AI 提供对 linting 结果的直接访问以及按需运行 ESLint 的能力,我们正在帮助这些工具为你的代码库提供更准确、更具上下文感知的建议。

🌐 We also embraced the Model Context Protocol (MCP) by releasing the @eslint/mcp package. This MCP server allows AI models, such as those used in VS Code’s Copilot, to interact directly with ESLint. By providing the AI with direct access to linting results and the ability to run ESLint on demand, we’re helping these tools provide more accurate and context-aware suggestions for your codebase.

性能和工作流程改进

🌐 Performance and workflow improvements

2025 年最重要的技术成就之一是 v9.34.0 中引入的 多线程 linting。这个已经讨论了十多年的功能,允许 ESLint 利用多个 CPU 核心并行检查文件。根据硬件和项目结构的不同,大型项目的性能提升范围从 30% 到超过 300% 不等。

🌐 One of the most significant technical achievements of 2025 was the introduction of multithreaded linting in v9.34.0. This feature, which had been in discussion for over a decade, allows ESLint to utilize multiple CPU cores to lint files in parallel. Large projects have seen performance improvements ranging from 30% to over 300%, depending on the hardware and project structure.

我们也在四月份引入了批量抑制功能。该功能允许团队通过标记现有违规项以供以后修复,而不会在源代码中增加注释,从而逐步采用更严格的代码检查规则。它已经成为大规模迁移和在专业环境中维护代码质量的关键工具。

🌐 We also introduced bulk suppressions in April. This feature allows teams to adopt stricter linting rules incrementally by marking existing violations for later fixing without cluttering the source code with comments. It has become a key tool for large-scale migrations and maintaining code quality in professional environments.

更新以支持最新的 ECMAScript 特性

🌐 Updates to support the latest ECMAScript features

跟上 JavaScript 语言的发展仍然是核心优先事项。在2025年,我们新增了对以下 JavaScript 功能的支持:

🌐 Keeping pace with the JavaScript language remains a core priority. In 2025, we added support for the following new JavaScript features:

这些更新确保 ESLint 仍然是现代 JavaScript 开发中保持最新的工具。

🌐 These updates ensure that ESLint remains an up-to-date tool for modern JavaScript development.

通往 ESLint v10.0.0 的道路

🌐 The road to ESLint v10.0.0

2025 年末的重点是下一个重大里程碑:ESLint v10.0.0。此版本代表了项目的重大整顿,包括:

🌐 The end of 2025 was focused on the next major milestone: ESLint v10.0.0. This release represents a significant cleanup of the project, including:

  • 停止支持 Node.js < 20.19.0,这使我们能够利用现代 Node.js 功能,例如在 require() 中的原生 ESM 支持。
  • 完全移除传统的 eslintrc 配置系统,最终完成多年前开始的转向扁平配置的过渡。
  • 改进 JSX 引用跟踪,使现代 React 和 SolidJS 应用的作用域分析更准确。

我们在十一月发布了第一个 alpha 版本,十二月发布了 beta 版本,目前我们正处于候选发布阶段,迈入 2026 年。

🌐 We released the first alpha in November, followed by a beta in December, and we are currently in the release candidate phase as we head into 2026.

财务审查

🌐 Financials review

接下来的几节将深入探讨项目财务情况。所有这些信息均来自 Open Collective 的交易清单,Tidelift 的付款除外(这些信息是直接从 Tidelift 获取的)。我们的2025财政年度从2025年1月1日午夜(UTC)开始,到2025年12月31日晚上11:59(UTC)结束。

🌐 The next few sections dig into the project financials. All of this information is gathered from the Open Collective transaction list with the exception of Tidelift payments (which are retrieved from Tidelift directly). Our fiscal 2025 runs from January 1, 2025 at midnight UTC to December 31, 2025 at 11:59 p.m. UTC.

收入审查

🌐 Income review

2025 Income Sources - Summarized in following table

在2025年,ESLint从我们所有的收入来源共收到204,451.97美元。你可以在下表中看到我们的收入来源明细。

🌐 During 2025, ESLint received $204,451.97 USD from all of our income sources. You can see the breakdown of our income sources in the following table.

来源 2025 金额 2024 金额 增减百分比
Open Collective $142,814.72 $122,996.60 +16.11%
GitHub 赞助者 $40,702.15 $35,928.93 +13.29%
Tidelift $15,500.00 $18,449.16 -15.99%
网站广告 $3,718.35 $6,345.54 -41.40%
Thanks.dev $1,461.74 $4,234.09 -65.48%
Open JS 基金会 $255.01 $0.00 +100.00%
Threadless $0.00 $9.98 -100.00%
总计 $204,451.97 $187,964.30 +8.77%

我们很高兴看到通过 Open Collective 和 GitHub Sponsors 我们的主要赞助渠道持续增长。然而,随着我们完全转向 Ethical Ads,我们看到 Tidelift 收入持续下降,网站广告收入也大幅下降。

🌐 We are pleased to see continued growth in our primary sponsorship channels via Open Collective and GitHub Sponsors. However, we saw a continued decline in Tidelift revenue and a significant drop in website ad revenue as we moved entirely to Ethical Ads.

Thanks.dev 的收入实际上 增加 到 $11,337.61。这是一个文书问题,因为我们忘记在 2025 年结束之前提现,所以 $9,875.87 在财务交易截止日期之后才收到。由于我们没有使用这笔钱支付 2025 年的开支,因此没有将其包含在表格中。

🌐 Thanks.dev revenue actually increased to $11,337.61. This is a clerical issue because we forgot to cash out before the end of 2025 so $9,875.87 was received after the transaction deadline for our financials. Because we didn’t use this money to pay for expenses in 2025, we didn’t include it in the table.

顶层赞助商

🌐 Top sponsors

在2025年,我们收到了来自许多公司的慷慨捐赠,其中以Automattic和Airbnb(各24,000美元)、Meta开源(20,000美元)以及AG Grid(20,000美元)为首。

🌐 In 2025, we received generous donations from many companies, led by Automattic and Airbnb ($24,000 each), Meta Open Source ($20,000), and AG Grid ($20,000).

赞助商 2025 年捐赠总额
Automattic $24,000.00
Airbnb $24,000.00
Meta 开源 $20,000.00
AG Grid $20,000.00
Shopify $13,000.00
trunk.io $11,000.00
Qlty Software $11,000.00
Liftoff $6,000.00
StackBlitz $5,680.65
美国运通 $5,500.00
Vite $5,500.00
Cybozu $3,000.00
Nx $2,400.00
HeroCoders $2,400.00
GitBook $2,400.00
Discord $2,400.00
梅赛德斯-奔驰集团 $2,200.00
Icons8 $2,200.00
LambdaTest $2,078.57
保诚金融集团 $1,710.00
Anagram Solver $1,600.00
JetBrains $1,500.00
Vasilii Kovalev $1,380.00
Neko $1,250.00
西门子 $1,000.00

费用审查

🌐 Expenses review

2025 Expenses - Summarized in following table

在2025年,我们在整个ESLint项目上花费了262,150.09美元,而收入为204,451.97美元,净亏损为-57,698.12美元。这比我们2024年的59,705.24美元亏损略好,但仍然反映了我们将储备资金积极投资于项目的未来。

🌐 In 2025, we spent $262,150.09 USD on the ESLint project as a whole vs. $204,451.97 of income for a net loss of -$57,698.12. This is slightly better than our $59,705.24 loss in 2024, but it still reflects our active investment of our reserves into the project’s future.

类别 2025金额 2024金额 增减百分比
维护与开发 $170,966.29 $147,273.43 +16.09%
TSC 津贴(Tidelift) $15,500.00 $18,449.16 -15.99%
分诊与支持 $450.00 $3,985.50 -88.71%
贡献者资金池 $24,679.72 $14,100.30 +75.03%
支付处理器费用 $4,540.18 $3,808.97 +19.20%
健康保险 $13,642.32 $12,698.40 +7.43%
开源协会费用 $13,824.32 $11,696.69 +18.19%
生态系统/依赖 $16,500.00 $16,100.00 +2.48%
社区管理 $950.00 $9,825.03 -90.33%
谷歌工作区 $252.26 $182.06 +38.56%
设备 $145.00 $0.00 +100.00%
客座博客文章 $300.00 $0.00 +100.00%
配置检查器 $400.00 $2,350.00 -82.98%
代码浏览器 $0.00 $7,200.00 -100.00%
总计 $262,150.09 $247,669.54 +5.85%

随着我们迎来四名新团队成员、维护三个语言插件、处理核心重写以及为v10.0.0做准备,我们的维护和开发成本持续上升。我们还大幅增加了对贡献者池的投资,该池为外部贡献者的高影响力工作提供报酬。相比2024年,我们能够通过降低分类处理和社区管理的成本来抵消部分这些增加的开支。

🌐 Our Maintenance and Development costs continued to rise as we welcome four new team members, maintained three language plugins, tackled the core rewrite and the preparation for v10.0.0. We also significantly increased our investment in the Contributor Pool, which compensates outside contributors for high-impact work. We were able to offset some of these increases with lower costs for triage and community management compared to 2024.

支持我们的依赖和生态系统

🌐 Supporting our dependencies and ecosystem

作为我们对 JavaScript 生态系统金融健康承诺的一部分,我们继续向我们依赖的项目捐款。在2025年,我们将捐款总额提高到了16,500.00美元。

🌐 As part of our commitment to the financial health of the JavaScript ecosystem, we continued to donate to the projects we depend on. In 2025, we increased our total donations to $16,500.00.

项目 捐赠
Ajv $1,800.00
debug $1,800.00
eslint-plugin-import $1,800.00
lint-staged $1,800.00
Rollup $1,800.00
Sindre Sorhus $1,800.00
typescript-eslint $1,800.00
jsx-eslint $1,500.00
Eleventy $1,200.00
CSSTree $900.00
WebdriverIO $300.00
总计 $16,500.00

期待2026年

🌐 Looking forward to 2026

随着 ESLint v10.0.0 即将发布,2026 年看起来将是又一个具有里程碑意义的年份。一旦 v10.0.0 稳定下来,我们的主要关注点将转向:

🌐 With ESLint v10.0.0 just around the corner, 2026 is shaping up to be another landmark year. Once v10.0.0 is stable, our primary focus will shift towards:

  1. 完成核心重写: 将剩余的旧核心逻辑迁移到新的与语言无关的架构中,并使核心成为异步的。
  2. 扩展语言插件: 进一步改进对 CSS、JSON 和 Markdown 的支持,并探索其他常见网页格式的官方插件。
  3. 性能优化: 继续优化多线程代码检查,并寻找进一步减少代码检查时间的机会。
  4. 跨文件Linting: 允许ESLint在进行lint检查的文件中跟踪依赖,以获得更准确的结果。

我们非常感谢我们的社区和赞助商的持续支持。你们的贡献让我们能够将 ESLint 维持为一个高质量、免费的开源工具,服务于数百万开发者。我们期待着又一年的共同成长和改进!

🌐 We are incredibly grateful to our community and sponsors for their continued support. Your contributions allow us to maintain ESLint as a high-quality, free, and open-source tool for millions of developers. We look forward to another year of growing and improving together!

最新的 ESLint 新闻、案例研究、教程和资源。

ESLint v10.3.0 发布
1 min read

ESLint v10.3.0 发布

我们刚刚发布了 ESLint v10.3.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。

ESLint v10.2.1 发布
1 min read

ESLint v10.2.1 发布

我们刚刚发布了 ESLint v10.2.1,这是 ESLint 的一个补丁版本升级。本次发布修复了上一版本中发现的几个错误。

ESLint v10.2.0 发布
2 min read

ESLint v10.2.0 发布

我们刚刚发布了 ESLint v10.2.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。