
Published under: Release Notes
1 min read
我们刚刚发布了 ESLint v9.3.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。
🌐 Highlights
ESLint v9.3.0 为某些规则添加了新的选项:
🌐 ESLint v9.3.0 adds new options to some rules:
func-style 有了新的选项 overrides.namedExportsno-extra-boolean-cast 有了新的选项 enforceForInnerExpressions,取代了已弃用但仍被识别的 enforceForLogicalOperands 选项no-misleading-character-class 有新的选项 allowEscapeno-restricted-exports 有了新的选项 restrictedNamedExportsPattern内置规则 line-comment-position 和 multiline-comment-style 已被废弃,建议使用第三方替代品。
🌐 The built-in rules line-comment-position and multiline-comment-style have been deprecated in favor of third-party replacements.
🌐 Features
b32153c 功能: 在 func-style 规则中添加 overrides.namedExports (#18444) (Percy Ma)b67eba4 功能:向 no-restricted-exports 添加 restrictedNamedExportsPattern (#18431) (Akul Srivastava)069aa68 功能:为 no-misleading-character-class 规则添加选项 allowEscape (#18208) (Francesco Trotta)05ef92d 功能:废弃 multiline-comment-style 和 line-comment-position (#18435) (唯然)db0b174 功能:向 no-extra-boolean-cast 添加 enforceForInnerExpressions 选项 (#18222) (Kirk Waiblinger)🌐 Bug Fixes
8db0eff 修复:改进配置错误信息 (#18457) (Nicholas C. Zakas)5c28d9a 修复:不要删除 object-shorthand 中键和值之间的注释 (#18442) (Kuba Jastrzębski)39fb0ee 修复:[object-shorthand] 在自动修复时丢失类型参数 (#18438) (dalaoshu)37eba48 修复:当 fs.readFile 从另一个环境返回 promise 时不再崩溃 (#18416) (Milos Djermanovic)🌐 Documentation
ceada8c 文档:解释如何使用 “tsc waiting” 标签 (#18466) (Francesco Trotta)62e686c 文档:为插件兼容性添加故障排除信息 (#18451) (Nicholas C. Zakas)e17e1c0 文档:更新自述文件(GitHub Actions 机器人)2465a1e 文档:更新自述文件(GitHub Actions 机器人)d23574c 文档:澄清 no-unreachable 在 TypeScript 中的使用 (#18445) (benj-dobs)1db9bae 文档:修复拼写错误 (#18443) (Frieder Bluemle)7065196 文档:更新自述文件(GitHub Actions 机器人)04e7c6e 文档:更新 no-return-await 的弃用通知 (#18433) (Tanuj Kanti)e763512 文档:在配置对象属性列表中链接全局忽略部分 (#18430) (MaoShizhong)ac7f718 文档:在配置迁移指南中反映 v9 的发布 (#18412) (Peter Briggs)0de0909 文档:修复配置文件解析中的语法 (#18419) (Mike McCready)🌐 Chores
58e2719 杂务:更新依赖以发布 v9.3.0 版本 (#18469) (Francesco Trotta)b681ecb 事务:更新 package.json 以适配 @eslint/js 版本发布(Jenkins)06f1d1c 杂项:将依赖 @humanwhocodes/retry 更新至 ^0.3.0 (#18463) (renovate[bot])a63ed72 重构:对内置 Node.js 模块使用 node: 协议 (#18434) (Milos Djermanovic)040700a 杂务:将依赖 markdownlint-cli 更新到 ^0.40.0 (#18425) (renovate[bot])f47847c 事务:将 actions/stale action 更新到 v9 (#18426) (renovate[bot])c18ad25 事务:将 actions/upload-artifact 操作更新到 v4 (#18427) (renovate[bot])27e3060 任务:禁用文档标签 (#18423) (Nicholas C. Zakas)最新的 ESLint 新闻、案例研究、教程和资源。


