ESLint v7.7.0 发布

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

亮点

🌐 Highlights

ESLint v7.3.0 中,我们发布了对 comma-dangle 规则的更改,该更改 不允许在规则配置中有多个选项。我们的语义化版本控制策略允许在 semver 次要版本中引入可能导致新错误的更改,如果该更改被视为错误修复,并且当时我们认为这一更改属于这一类别。在内部讨论了这是否是我们策略的正确应用之后,我们决定 更新我们的语义化版本控制策略,将规则模式作为公共 API 的一部分,并在本次发布中撤销此更改。

🌐 In ESLint v7.3.0, we released a change to the comma-dangle rule that disallowed having multiple options in the rule’s configuration. Our semantic versioning policy allows for changes that may introduce new errors in semver-minor releases if the change is considered a bug fix and, at the time, we decided that this change fell under that category. After discussing internally whether this was the correct application of our policy or not, we have decided to update our semantic versioning policy to include rule schemas as part of the public API and to revert this change in this release.

增强功能

🌐 Enhancements

错误修复

🌐 Bug Fixes

文档

🌐 Documentation

  • [26aa245](https://github.com/eslint/eslint/commit/26aa2452b5f407fabc25dad21182180e4d3be532) 文档:澄清 [padding-line-between-statements] 中的 “case” 指定符 (#13562) (Milos Djermanovic)
  • 082891c 文档:更新语义化版本控制政策 (#13563) (Nicholas C. Zakas)

杂项

🌐 Chores

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