
亮点
🌐 Highlights
以下是此版本中的一些主要变化。
🌐 Here are some of the key changes in this release.
实验性 TypeScript 配置文件
🌐 Experimental TypeScript configuration files
Arya Emami 为 TypeScript 配置文件提供了实验性支持。具体来说,现在你可以使用 eslint.config.ts、eslint.config.mts 和 eslint.config.cts 文件作为你的配置文件。由于此功能是实验性的,你需要使用 unstable_ts_config 功能标志:
npx eslint --flag unstable_ts_config
对于 Node.js,你需要手动安装 jiti,它提供 TypeScript 到 JavaScript 的功能;对于 Deno 和 Bun,则不需要额外的依赖。(当 TypeScript 类型剥离 在 Node.js 中稳定推出时,你在 Node.js 中也不需要额外的依赖)
🌐 For Node.js, you’ll need to manually install jiti, which provides the TypeScript-to-JavaScript functionality; for Deno and Bun, no additional dependency is necessary. (When TypeScript type stripping lands as stable in Node.js, you also won’t need an additional dependency in Node.js)
有关此功能的更多信息,请参阅 TypeScript 配置文件。有关使用功能标志的更多信息,请参阅 功能标志。
🌐 For more information on this feature, see TypeScript Configuration Files. For more information on using feature flags, see Feature Flags.
其他显著变化
🌐 Other notable changes
现在require-await规则建议删除可能不必要的async关键字用法。
🌐 The require-await rule now suggests to remove possibly unnecessary usages of the async keyword.
特性
🌐 Features
41d0206功能:添加对 TS 配置文件的支持 (#18134) (Arya Emami)3a4eaf9功能:向require-await添加建议以移除async关键字 (#18716) (Dave)
文档
🌐 Documentation
9fe068c文档:如何编写具有可扩展其他配置的配置的插件 (#18753) (Alec Gibson)48117b2文档:在侧边导航栏添加版本支持页面 (#18738) (Amaresh S M)fec2951文档:在下拉菜单中添加版本支持页面 (#18730) (Amaresh S M)38a0661文档:修复拼写错误 (#18735) (Zaina Al Habash)3c32a9e文档:更新用于创建 ESLint 配置的 yarn 命令 (#18739) (Temitope Ogunleye)f9ac978文档:更新自述文件(GitHub Actions 机器人)
杂项
🌐 Chores
461b2c3任务: 升级到@eslint/js@9.9.0(#18765) (Francesco Trotta)59dba1b事务:更新 package.json 以适配 @eslint/js 版本发布(Jenkins)fea8563杂项:将依赖 @eslint/core 更新到 ^0.3.0 (#18724) (renovate[bot])aac191e杂项:将依赖 @eslint/json 更新到 ^0.3.0 (#18760) (renovate[bot])b97fa05例行事项:更新 wdio 依赖以获得更稳定的测试 (#18759) (Christian Bromann)
