
亮点
🌐 Highlights
插件配置解析改进
🌐 Plugin config resolution improvements
此版本在确定应从支持旧(eslintrc)和新配置格式的插件中使用哪种配置方面引入了改进。例如,在扩展插件配置时,例如 extends: ["my-plugin/recommended"],defineConfig() 配置助手如果在插件中存在 configs["recommended"] 配置但被检测为 eslintrc 配置格式时,已经会查找 configs["flat/recommended"] 配置。
🌐 This release introduces improvements in determining which configuration to use from plugins that support both old (eslintrc) and new configuration formats. When extending a plugin configuration, for example extends: ["my-plugin/recommended"], the defineConfig() config helper was already looking for configs["flat/recommended"] configuration if configs["recommended"] configuration exists in the plugin but is detected as the eslintrc configuration format.
截至本版本:
🌐 As of this release:
defineConfig()配置助手将会查找configs["flat/recommended"]配置,即使插件中不存在configs["recommended"]配置。- 具有数组值作为
plugins属性的配置将被检测为 eslintrc 配置格式。
其他显著变化
🌐 Other notable changes
[complexity](/docs/latest/rules/complexity)规则现在仅高亮函数头,而不是整个函数。
特性
🌐 Features
ce40f74功能:更新complexity规则,仅高亮函数头部 (#20048) (Atul Nair)e37e590功能:用e标记纠正no-loss-of-precision的误报 (#20187) (Francesco Trotta)
错误修复
🌐 Bug Fixes
50c3dfd修复:改进 pnpm 对隔离依赖的类型支持 (#20201) (Francesco Trotta)a1f06a3修复:纠正 SourceCode 类型定义 (#20114) (Pixel998)
文档
🌐 Documentation
462675a文档:通过隐藏非语义字符来改善网页可访问性 (#20205) (루밀LuMir)c070e65文档:在no-irregular-whitespace规则文档中修复格式 (#20203) (루밀LuMir)b39e71a文档:更新自述文件(GitHub Actions 机器人)cd39983文档:将custom-formatters类型描述移动到nodejs-api(#20190) (Percy Ma)
杂项
🌐 Chores
d17c795杂务:升级 @eslint/js@9.38.0 (#20221) (Milos Djermanovic)25d0e33事务:更新 package.json 以适配 @eslint/js 版本发布(Jenkins)c82b5ef重构:使用来自 @eslint/core 的类型 (#20168) (Nicholas C. Zakas)ff31609ci:将 Node.js 25 添加到ci.yml(#20220) (루밀LuMir)004577eci:将 github/codeql-action 从 3 升级到 4 (#20211) (dependabot[bot])eac71fb测试:从测试中移除 eslint-scope 的nodejsScope选项的使用 (#20206) (Milos Djermanovic)4168a18杂务:修复 legacy-eslint.js 中的拼写错误 (#20202) (Sweta Tanwar)205dbd2任务:修复错别字 (#20200) (ntnyq)dbb200e事务: 当数据中没有名称时使用团队成员的用户名 (#20194) (Milos Djermanovic)8962089杂项:将已弃用的规则标记为可用直到 v11.0.0 (#20184) (Pixel998)
