ESLint v8.0.0-rc.0 发布

我们刚刚发布了 ESLint v8.0.0-rc.0,这是 ESLint v8 的一个新的预发布版本。该版本增加了一些新功能,并修复了上一版本中发现的几个错误。

亮点

🌐 Highlights

这是本版本 ESLint 中你需要了解的主要更改的总结。

🌐 This is a summary of the major changes you need to know about for this version of ESLint.

这个版本的 ESLint 提供给社区收集反馈意见,以便在发布最终版本之前使用。请尝试使用,并报告任何意外的问题。

🌐 This version of ESLint is provided to gather feedback from the community before releasing the final version. Please try it and report any unexpected issues.

正在安装

🌐 Installing

由于这是预发布版本,npm 不会自动升级。安装时必须指定 next 标签:

🌐 Since this is a pre-release version, you will not automatically be upgraded by npm. You must specify the next tag when installing:

npm i eslint@next --save-dev

你也可以直接指定版本:

🌐 You can also specify the version directly:

npm i eslint@8.0.0-rc.0 --save-dev

迁移指南

🌐 Migration Guide

由于有很多变化,我们创建了一个迁移指南,详细描述了这些变化以及你应采取的步骤来应对它们。我们预计大多数用户应该能够在不进行任何构建更改的情况下升级,但如果你遇到问题,迁移指南应该是一个有用的资源。

🌐 As there are a lot of changes, we’ve created a migration guide describing the changes in great detail along with the steps you should take to address them. We expect that most users should be able to upgrade without any build changes, but the migration guide should be a useful resource if you encounter problems.

增强功能

🌐 Enhancements

  • 67c0074 更新:在平面配置中建议缺失的规则(修复 #14027) (#15074) (Nicholas C. Zakas)
  • cf34e5c 更新:space-before-blocks 在 switch 冒号后忽略(修复 #15082)(#15093) (Milos Djermanovic)
  • [14a4739](https://github.com/eslint/eslint/commit/14a4739ab2233acef995a6dde233de05d067a0f3) 更新:[no-new-func](/docs/rules/no-new-func) 规则捕获 MemberExpression 的 eval 情况 (#14860) (Mojtaba Samimi)
  • 0a1a850 更新:在错误日志中包含 ruleId(修复 #15037) (#15053) (Ari Perkkiö)

错误修复

🌐 Bug Fixes

  • c9efb5f 修复:在从禁用指令中移除规则时保留格式 (#15081) (Milos Djermanovic)

文档

🌐 Documentation

  • 7f2346b 文档:更新发布博客文章模板 (#15094) (Nicholas C. Zakas)
  • a744dfa 文档:更新 CLA 信息 (#15058) (Brian Warner)

杂项

🌐 Chores

  • fabdf8a 任务:从 Makefile.js 中移除 target.all (#15088) (Hirotaka Tagawa / wafuwafu13)
  • 05d7140 任务:在 Makefile.js 中记录目标全局 (#15084) (Hirotaka Tagawa / wafuwafu13)
  • 47be800 任务:用 { a = 1 } 模式测试 Property > .key (修复 #14799) (#15072) (Milos Djermanovic)
  • 9fb0f70 工作项:修复错误报告模板 (#15061) (Milos Djermanovic)
  • f87e199 工作任务:清理问题模板 (#15039) (Nicholas C. Zakas)

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