ESLint 2023 年回顾

2023 年见证了我们备受期待的新配置系统及其他内容的发布。

2023年的计划围绕着我们自2021年以来的第一次重大版本发布 ESLint v9.0.0 展开。大部分时间都用于为发布做准备,构建新的配置系统(扁平配置),并在全年与生态系统沟通其影响。

🌐 The plan for 2023 centered around our first major release since 2021, ESLint v9.0.0. Most of the year was spent preparing for the release, building out the new configuration system (flat config) and communicating the impact to the ecosystem throughout the year.

ESLint v9.0.0 及新配置系统的发布

🌐 Release of ESLint v9.0.0 and the new configuration system

虽然在 v9.0.0 中有 许多变化,但最大的变化是将扁平配置作为默认配置系统。旧的 (eslintrc) 配置仍然可以通过环境变量使用,我们发布了 推广计划,概述了从 v8.x 到 v10.x 的过渡过程。

🌐 While there are a lot of changes in v9.0.0, the biggest change is making flat config the default configuration system. The old (eslintrc) configuration is still available via an environment variable, and we published the rollout plan outlining how the transition will occur from v8.x through to v10.x.

就在年底之前,我们发布了 ESLint v9.0.0-alpha.0。我们预计 v9.0.0 的最终版本将在 2024 年春季发布。

🌐 Just before the end of the year, we released ESLint v9.0.0-alpha.0. We anticipate a final v9.0.0 release in the spring of 2024.

其他变化

🌐 Other changes

  • 格式规则废弃 - 与 ESLint 的根源相比,这是一个重大转变,我们决定正式废弃格式规则
  • 规则 API 的变更 - 对于那些自己编写规则的人,我们宣布了规则 API 的重要变更,这将为 ESLint 的下一步做好准备:语言插件

更新以支持最新的 ECMAScript 特性

🌐 Updates to support the latest ECMAScript features

团队花费大部分时间预期新的 ECMAScript 特性,并相应地更新 ESLint。2023 年是一个特殊年份,因为大多数变化与语法无关,因此没有大量额外工作。最重要的语法变化,hashbang 注释,是 ESLint 已经处理过以支持 Node.js 的内容。

🌐 The team spends much of the year anticipating new ECMAScript features and updating ESLint accordingly. 2023 was an outlier in that most of the changes weren’t syntax-related, and so there wasn’t a lot of additional work. The most significant syntax change, hashbang comments, is something that ESLint already handled to support Node.js.

财务审查

🌐 Financials review

接下来的几节将深入探讨项目的财务情况。所有这些信息均来自 Open Collective 的交易清单,Tidelift 的付款除外(这些付款直接从 Tidelift 获取)。由于交易在一天中的任何时间都会发生,我们决定将 2023 财年的交易定义为从 2023 年 1 月 1 日零点 UTC 开始,到 2023 年 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). Because transactions come in all throughout the course of a day, we decided to consider transactions beginning on January 1, 2023 at midnight UTC and ending on December 31, 2023 at 11:59 UTC as our fiscal 2023.

收入审查

🌐 Income review

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

🌐 During 2023, ESLint received $180,646.53 USD from all of our income sources. You can see the breakdown of our income sources in the following table.

来源 金额
Open Collective $118,381.30
GitHub 赞助 $25,190.89
Tidelift $30,077.84
Carbon 广告 $6,380.89
Thanks.dev $524.61
Stackaid.us $91.00
总计 $180,646.53

像往常一样,我们的大部分捐款是通过 Open Collective 来的。值得注意的是,由于整体展示广告业务的放缓,我们网站的广告收入相比 2022 年下降了大约 50%。我们将在 2024 年考虑提高网站广告收入的方案。

🌐 As usual, most of our donations came through Open Collective. Notably, our website ad revenue dropped roughly 50% from 2022, following an overall softening of the display ad business. We’ll be looking at options to improve our website ad revenue in 2024.

更新的赞助选项,Thanks.dev 和 Stackaid.us,收入不多,但都是我们会继续参与的有趣想法。

🌐 The newer sponsoring options, Thanks.dev and Stackaid.us, didn’t provide much income but are both interesting ideas that we’ll keep participating in.

我们非常感谢那些慷慨捐助以支持 ESLint 的公司和个人。我们知道过去一年科技行业经历了许多动荡,我们非常感激所有仍然决定赞助 ESLint 的人。

🌐 We are grateful to the companies and individuals who generously donated to support ESLint. We know that there has been a lot of turbulence in the tech industry in the past year, and we really appreciate everyone who still decided to sponsor ESLint.

顶层赞助商

🌐 Top sponsors

虽然我们对所有大小赞助商都心存感激,但我们对那些在2023年捐赠1,000美元或以上的人尤其感激。这些人在2023年的捐款总额为127,377.42美元,占我们总收入的70%。

🌐 While we are grateful to all of our sponsors, both large and small, we feel especially grateful to those who donated $1,000 USD or more during 2023. These folks totaled $127,377.42 USD during 2023, representing 70% of our total income.

赞助商 2023 捐款总额
Chrome Frameworks 基金 $24,000.00
Automattic $24,000.00
Salesforce $12,000.00
Airbnb $12,000.00
Indeed $10,000.00
Liftoff $6,000.00
Cybozu $4,976.00
Sentry $4,624.00
美国运通 $4,467.74
RIDI $4,000.00
ThemeIsle $2,400.00
Icons8 $2,400.00
Discord $2,400.00
Anagram Solver $2,400.00
Ignition $2,400.00
HeroCoders $2,400.00
Transloadit $2,309.68
Nx(由 Nrwl 提供) $1,800.00
QuickBooks 工具中心 $1,600.00
Yannick Croissant $1,200.00

费用审查

🌐 Expenses review

在2023年,我们在整个ESLint项目上共花费了185,646.98美元。这包括常规维护和开发以及与项目相关的其他费用。请参见下表以获取概览。

🌐 In 2023, we spent $185,646.98 USD on the ESLint project as a whole. This includes regular maintenance and development as well as other costs related to the project. See the table below for an overview.

类别 金额
维护与开发 -$66,910.37
TSC 津贴(Tidelift) -$30,077.84
分诊与支持 -$10,307.78
技术写作 -$8,155.00
贡献者基金 -$4,500.00
健康保险 -$13,447.41
开源集体费用 -$9,206.88
生态系统/依赖 -$24,400.00
社区管理 -$15,599.84
支付处理费 -$2,854.51
Google Workspace -$187.35
总计 -$185,646.98

提醒一下,贡献者基金是我们为非 ESLint 团队的贡献者提供的资金,以感谢他们对项目做出的有影响力的贡献。社区管理指的是管理 ESLint 社区 GitHub 组织所需的持续工作。

🌐 As a reminder, the Contributor Pool is money we award for contributions to people who are not on the ESLint team as a way to thank them for making impactful contributions to the project. Community Management refers to the ongoing work required to manage the ESLint Community GitHub organization.

你可能会注意到,我们的支出在2023年超过了收入。值得庆幸的是,我们保持了一大笔储备基金,因此可以应对任何意外开支,并防范赞助减少造成的损失。

🌐 You may notice that our expenses exceeded our income in 2023. Thankfully, we keep a large reserve fund so we can handle any unexpected expenses and to hedge against loss of sponsorships.

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

🌐 Supporting our dependencies and ecosystem

在2023年,ESLint项目向生态系统项目和我们的依赖目(在前表中列为“生态系统/依赖”)捐赠了24,400.00美元。这是我们持续承诺支持对ESLint重要的项目的一部分。

🌐 In 2023, the ESLint project donated $24,400.00 USD to ecosystem projects and our dependencies (listed in the previous table as “Ecosystem/Dependencies”). This is part of our ongoing commitment to supporting projects that are important to ESLint.

项目 捐赠
typescript-eslint -$11,800.00
Ajv -$1,800.00
debug -$1,800.00
eslint-plugin-import -$1,800.00
jsx-eslint -$1,800.00
lint-staged -$1,800.00
Rollup -$1,800.00
Sindre Sorhus -$1,800.00
总计 -$24,400.00

期待2024

🌐 Looking forward to 2024

一旦 v9.0.0 发布,我们就处于一个很好的位置来完成语言插件的工作,然后再转向我们在 2023 年讨论过的 完整重写。很难相信 ESLint 即将进入它的第十一年,我们正在做出准备,以确保该项目在未来十年内继续对 JavaScript 社区有用。

🌐 Once v9.0.0 is released, we’ll be in a good spot to finish work on language plugins and then move on to the complete rewrite we talked about in 2023. It’s hard to believe ESLint is heading into its 11th year, and we’re making the preparations to ensure the project will continue to be useful to the JavaScript community for the next decade.

我们知道 ESLint 是你工具链的重要组成部分,我们感谢你在我们志愿者团队推动项目进展时给予的持续支持。

🌐 We know that ESLint is an important part of your toolchain and we appreciate your ongoing support as our team of volunteers moves the project forward.

最新的 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 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。