
亮点
🌐 Highlights
此版本的 ESLint 尚未准备好用于生产环境,提供此版本是为了在发布最终版本之前收集社区的反馈。如果你遇到任何问题或有任何反馈,请通过在我们的 GitHub 仓库 创建问题告诉我们。
🌐 This version of ESLint is not ready for production use and is provided to gather feedback from the community before releasing the final version. Please let us know if you have any problems or feedback by creating issues on our GitHub repo.
请注意,这个 ESLint 的预发布版本有一个独立的文档部分。
🌐 Note that this prerelease version of ESLint has a separate documentation section.
重要错误修复
🌐 Notable bug fixes
- 核心
strict规则中的一个 回归 已经被修复。 LegacyESLint和FlatESLint的导出现在已完全从/use-at-your-own-risk入口点移除。在 ESLint v10 的早期预发布版本中,它们作为null导出。
正在安装
🌐 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@10.0.0-rc.2 --save-dev
迁移指南
🌐 Migration Guide
由于有很多变化,我们创建了一个 迁移指南,详细描述了重大更改以及你应该采取的应对步骤。我们预计大多数用户应该能够在不更改构建的情况下升级,但如果遇到问题,迁移指南应该是一个有用的资源。
🌐 As there are a lot of changes, we’ve created a migration guide describing the breaking 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.
错误修复
🌐 Bug Fixes
727451e修复:修复strict规则中全局模式报告范围的回归问题 (#20462) (ntnyq)e80485f修复:移除伪造的FlatESLint和LegacyESLint导出 (#20460) (Francesco Trotta)9eeff3b修复:更新 esquery (#20423) (cryptnix)
文档
🌐 Documentation
1495654文档:更新自述文件(GitHub Actions 机器人)0b8ed5c文档::is选择器别名的文档支持 (#20454) (sethamus)1c4b33f文档:关于仅 ESM 依赖的文档策略 (#20448) (Milos Djermanovic)
杂项
🌐 Chores
