
亮点
🌐 Highlights
no-underscore-dangle 规则增加了两个新选项:allowInArrayDestructuring 和 allowInObjectDestructuring。默认情况下,它们都设为 true,以允许在数组和对象解构中使用尾随下划线,以保持向后兼容性。将它们设置为 false 可以在解构赋值中检查尾随下划线。
🌐 The no-underscore-dangle rule gained two new options: allowInArrayDestructuring and allowInObjectDestructuring. Both of these default to true to allow dangling underscores in array and object destructuring for backwards compatibility. Set them to false to check for dangling underscores in destructuring assignments.
特性
🌐 Features
52c7c73功能:检查 no-underscore-dangle 中的赋值模式 (#16693) (Milos Djermanovic)[b401cde](https://github.com/eslint/eslint/commit/b401cde47d44746ff91b8feced3fb3a4e32c0e12)功能:在 no-underscore-dangle 中添加检查解构的选项 (#16006) (Morten Kaltoft)30d0daf功能:在key-spacing中将属性及其值括在括号中 (#16677) (Francesco Trotta)
错误修复
🌐 Bug Fixes
35439f1修复:纠正prefer-arrow-callback中的语法错误自动修复 (#16722) (Francesco Trotta)87b2470修复:FlatESLint 的新实例应加载最新的配置文件版本 (#16608) (Milos Djermanovic)
文档
🌐 Documentation
4339dc4文档:更新自述文件(GitHub Actions 机器人)4e4049c文档:优化代码块结构 (#16669) (Sam Chen)54a7ade文档:不要转义格式化示例的代码块 (#16719) (Sam Chen)e5ecfef文档:为 no-undefined 添加函数调用示例 (#16712) (Elliot Huffman)a3262f0文档:添加 Mastodon 链接 (#16638) (Amaresh S M)a14ccf9文档:澄清 files 属性 (#16709) (Sam Chen)3b29eb1文档:修复 npm 链接 (#16710) (Abdullah Osama)a638673文档:修复在Esc上的搜索栏焦点 (#16700) (Shanmughapriyan S)f62b722文档:Windows 中缺少国家标志 (#16698) (Shanmughapriyan S)4d27ec6文档:在文档语言切换器中显示 zh-hans (#16686) (Percy Ma)8bda20e文档:移除手动维护的锚点 (#16685) (Percy Ma)b68440f文档:用户指南 入门 扩展 (#16596) (Ben Perlmutter)
杂项
🌐 Chores
65d4e24杂务: 升级 @eslint/eslintrc@1.4.1 (#16729) (Brandon Mills)8d93081事务:修复 CI 失败 (#16721) (Sam Chen)8f17247事务: 设置 README 的自动更新 (#16717) (Nicholas C. Zakas)4cd87cbci:将 actions/stale 从 6 升级到 7 (#16713) (dependabot[bot])fd20c75工作:按字母顺序整理 package.json 脚本 (#16705) (Darius Dzien)10a5c78杂务:更新eslint.config.js中的忽略模式 (#16678) (Milos Djermanovic)
