
亮点
🌐 Highlights
此版本将 v9.x 中的两个新功能和多个与平面配置系统相关的错误修复回移到 v8.x,以帮助插件、集成和用户在最终 v9.0.0 发布之前迁移到平面配置。
🌐 This release backports from v9.x to v8.x two new features and several bug fixes related to the flat config system to help plugins, integrations and users migrate to flat config ahead of the final v9.0.0 release.
支持 eslint.config.mjs 和 eslint.config.cjs
🌐 Support for eslint.config.mjs and eslint.config.cjs
此版本在 v8.x 中引入了对 eslint.config.mjs 和 eslint.config.cjs 配置文件 的支持,除了 eslint.config.js 外,使你无论包含包的模块格式如何,都可以更轻松地使用你喜欢的模块格式。
🌐 This release introduces support for eslint.config.mjs and eslint.config.cjs configuration files to v8.x in addition to eslint.config.js, making it easier to use the module format you’d prefer regardless of the module format of the containing package.
新 API loadESLint()
🌐 New API loadESLint()
ESLint 现在从其主入口导出一个新的函数 loadESLint()。集成可以使用此函数获取 FlatESLint 类(v9.x 中为 ESLint 类)或 ESLint 类(v9.x 中为 LegacyESLint 类),从而轻松在 flat 配置和 eslintrc API 之间切换。
🌐 ESLint now exports a new function loadESLint() from its main entry point. Integrations can use this function to get either the FlatESLint class (ESLint class in v9.x) or the ESLint class (LegacyESLint class in v9.x) and thus easily swap between flat config and eslintrc APIs.
特性
🌐 Features
1120b9b功能:为 v8 添加 loadESLint() API 方法 (#18098) (Nicholas C. Zakas)dca7d0f功能:启用eslint.config.mjs和eslint.config.cjs(#18066) (Nitin Kumar)
错误修复
🌐 Bug Fixes
2196d97修复:在FlatRuleTester中处理绝对文件路径 (#18064) (Nitin Kumar)69dd1d1修复:确保在配置错误时打印配置键 (#18067) (Nitin Kumar)9852a31修复:平面配置中的深度合并行为 (#18065) (Nitin Kumar)4c7e9b0修复:允许配置中的循环引用 (#18056) (Milos Djermanovic)
文档
🌐 Documentation
84922d0文档:在下拉菜单中显示预发布版本 (#18139) (Nicholas C. Zakas)5b8c363文档:切换到道德广告 (#18117) (Milos Djermanovic)77dbfd9文档:在版本选择器中显示 NEXT (#18052) (Milos Djermanovic)
杂项
🌐 Chores
