
亮点
🌐 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
文档
🌐 Documentation
杂项
🌐 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)
