
Published under: Release Notes
1 min read
我们刚刚发布了 ESLint v8.56.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。
🌐 Highlights
🌐 New features for reporting unused disable directives
--report-unused-disable-directives-severity。此选项在 eslintrc 和 flat 配置模式下都可用。[linterOptions.reportUnusedDisableDirectives](/docs/latest/use/configure/configuration-files-new#reporting-unused-disable-directives) 配置选项现在可以设置为以下严重性值:"error"(或 2)、"warn"(或 1)、"off"(或 0)。此功能仅在扁平配置文件(eslint.config.js)中可用。🌐 Features
0dd9704 功能:在报告未使用的禁用指令时支持自定义严重性 (#17212) (Bryan Mishkin)[31a7e3f](https://github.com/eslint/eslint/commit/31a7e3fde491e36496b54e8905c766b31162d776) 功能:修复未知对象导致的 no-restricted-properties 假阴性 (#17818) (Arka Pratim Chaudhuri)🌐 Bug Fixes
7d5e5f6 修复:只读文件系统上的 TypeError: fs.exists is not a function (#17846) (Francesco Trotta)74739c8 修复:在 no-promise-executor-return 规则中使用无效语法的建议 (#17812) (Bryan Mishkin)🌐 Documentation
9007719 文档:在 ways-to-extend 中更新链接 (#17839) (Amel SELMANE)3a22236 文档:更新自述文件(GitHub Actions 机器人)54c3ca6 文档:修复迁移指南示例 (#17829) (Tanuj Kanti)4391b71 文档:在规则示例中检查配置注释 (#17815) (Francesco Trotta)fd28363 文档:在自述文件中删除关于 ESLint 风格规则的提及 (#17810) (Zwyx)48ed5a6 文档:更新自述文件(GitHub Actions 机器人)🌐 Chores
ba6af85 杂务:升级 @eslint/js@8.56.0 (#17864) (Milos Djermanovic)60a531a 事务:更新 package.json 以适配 @eslint/js 版本发布(Jenkins)ba87a06 杂务: 更新依赖 markdownlint 至 ^0.32.0 (#17783) (renovate[bot])9271d10 事务: 为文档问题添加 GitHub 问题模板 (#17845) (Josh Goldberg ✨)70a686b 例行公事:将规则测试转换为 FlatRuleTester (#17819) (Nicholas C. Zakas)f3a599d 杂项:将 eslint-plugin-unicorn 升级到 v49.0.0 (#17837) (唯然)905d4b7 事项:升级 eslint-plugin-eslint-plugin 到 v5.2.1 (#17838) (唯然)4d7c3ce 杂项:更新 eslint-plugin-n 到 v16.4.0 (#17836) (唯然)fd0c60c ci:取消固定 Node.js 21.2.0 (#17821) (Francesco Trotta)最新的 ESLint 新闻、案例研究、教程和资源。


