
亮点
🌐 Highlights
RuleTester 需要 meta.fixable 来修复可修复的规则
🌐 RuleTester requires meta.fixable for fixable rules
可修复规则需要具有 meta.fixable 属性。最近发现了 RuleTester 类中的一个错误(该类旨在帮助插件作者编写和测试自定义规则),其中未导出元数据(meta 属性)的可修复规则不会验证 meta.fixable 属性的存在,而导出 meta 的规则则会验证。
🌐 Fixable rules are required to have a meta.fixable property. A bug in the RuleTester class (which is intended to help plugin authors write and test custom rules) was recently surfaced in which fixable rules that do not export metadata (the meta property) are not validated for the existence of a meta.fixable property, while rules that do export meta are.
这个问题已在此版本中修复!不幸的是,对于应用修复但缺少 meta 属性的规则,这可能会导致 RuleTester 报告新的错误。如果你在解决此问题时需要帮助,请随时访问我们的 帮助通道 。
🌐 This has been fixed in this release! Unfortunately, this can lead to new errors being reported by the RuleTester for rules that apply fixes and are missing a meta property. Please feel free to stop by our help channel if you need assistance resolving this issue.
增强功能
🌐 Enhancements
ecb2b73更新:在 RuleTester 中可修复的规则需要meta(参考 #13349) (#13489) (Milos Djermanovic)e71e298更新:将 no-duplicate-case 更改为比较令牌(修复 #13485)(#13494) (太田洋介)
错误修复
🌐 Bug Fixes
318fe10修复:当不可用时,不要将undefined输出为行和列 (#13519) (haya14busa)16b10fe修复:更新聊天室链接,直接指向帮助通道 (#13536) (Nicholas C. Zakas)
文档
🌐 Documentation
