
亮点
🌐 Highlights
no-unused-private-class-members 建议
🌐 no-unused-private-class-members Suggestions
[no-unused-private-class-members](/docs/latest/rules/no-unused-private-class-members) 规则现在提供 建议 来移除报告的未使用私有类成员。
🌐 The no-unused-private-class-members rule now provides suggestions to remove reported unused private class members.
例如,对于以下代码,其中规则报告 #doSomethingElse 未使用:
🌐 For example, for the following code, in which the rule reports #doSomethingElse as unused:
class C {
/**
* My public method.
*/
doSomething() {
}
/**
* My private method.
*/
#doSomethingElse() {
}
}
现在它将建议删除 #doSomethingElse。应用建议后,该方法及相关注释将被删除:
🌐 It will now suggest removing #doSomethingElse. After applying the suggestion, the method and related comment will be removed:
class C {
/**
* My public method.
*/
doSomething() {
}
}
特性
🌐 Features
379571a功能:为 no-unused-private-class-members 添加建议 (#20773) (sethamus)
错误修复
🌐 Bug Fixes
b6ae5cf修复:处理不可用的 require 缓存 (#20812) (Simon Podlipsky)6fb3685修复:规则建议导致类体中继续 (#20787) (Milos Djermanovic)
文档
🌐 Documentation
杂项
🌐 Chores
d32235eci:在eslint-flat-config-utils类型集成测试中使用 pnpm (#20826) (Francesco Trotta)3ffb14e事务: 清理评论和 JSDoc 中的拼写错误 (#20821) (Pixel998)22eb58a任务:在 ecosystem-tests.yml 中添加缺失的 continue-on-error (#20818) (Josh Goldberg ✨)88bf002ci: 将 pnpm/action-setup 从 6.0.1 更新到 6.0.3 (#20815) (dependabot[bot])97c8c33事务: 将 ilshidur/action-discord 操作更新至 v0.4.0 (#20811) (renovate[bot])[2f58136`](https://github.com/eslint/eslint/commit/2f58136dd47364a4cae7054a64f7bf1e79693813) 杂务:将 peter-evans/create-pull-request 操作固定到 5f6978f (#20810) (renovate[bot])77add7f杂务:添加初始生态系统插件测试工作流程 (#19643) (Josh Goldberg ✨)4023b55测试:为 SuppressionsService.prune() 添加单元测试 (#20797) (kuldeep kumar)54080da测试:为 ForkContext 添加单元测试 (#20778) (kuldeep kumar)f0e2bcc测试:为 SuppressionsService.suppress() 方法添加单元测试 (#20765) (kuldeep kumar)a7f0b94杂务:将依赖 prettier 更新到 v3.8.3 (#20782) (renovate[bot])7bf93d9任务:将 TypeScript 更新到 v6 (#20677) (sethamus)b42dd72ci: 将 pnpm/action-setup 从 6.0.0 更新到 6.0.1 (#20781) (dependabot[bot])2b252be测试:为 IdGenerator 添加单元测试 (#20775) (kuldeep kumar)
