
亮点
🌐 Highlights
这是本版本 ESLint 中你需要了解的主要更改的总结。
🌐 This is a summary of the major changes you need to know about for this version of ESLint.
正在安装
🌐 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@9.0.0-beta.1 --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.
特性
🌐 Features
错误修复
🌐 Bug Fixes
文档
🌐 Documentation
5fe095c文档:在下拉菜单中显示 v8.57.0 作为最新版本 (#18142) (Milos Djermanovic)7db5bb2文档:在下拉菜单中显示预发布版本 (#18135) (Nicholas C. Zakas)73a5f06文档:更新自述文件(GitHub Actions 机器人)f95cd27文档:禁止在同一示例中配置多个规则注释 (#18116) (Milos Djermanovic)d8068ec文档:更新 schema 示例的链接 (#18112) (Svetlana)
构建相关
🌐 Build Related
杂项
🌐 Chores
32ffdd1事务:升级 @eslint/js@9.0.0-beta.1 (#18146) (Milos Djermanovic)e41425b事务:更新 package.json 以适配 @eslint/js 版本发布(Jenkins)bb3b9c6事务:升级 @eslint/eslintrc@3.0.2 (#18145) (Milos Djermanovic)e462524杂项:升级 eslint-release@3.2.2 (#18138) (Milos Djermanovic)8e13a6b任务:修复 README.md 中的拼写错误 (#18128) (Will Eastcott)66f52e2杂务:删除未使用的工具 rule-types.json,更新 update-rule-types.js (#18125) (Josh Goldberg ✨)bf0c7efci:修复 pr-labeler 的 sync-labels 值 (#18124) (Tanuj Kanti)cace6d0ci:添加 PR 标签器动作 (#18109) (Nitin Kumar)1a65d3e杂务: 从eslint-config-eslint导出base配置 (#18119) (Milos Djermanovic)9aa4df3重构:移除globals依赖 (#18115) (Milos Djermanovic)
