
亮点
🌐 Highlights
对正则表达式 v 标志的支持
🌐 Support for regular expressions v flag
我们已更新 ESLint,以全面支持 ECMAScript 2024 的 正则表达式 v 标志。该标志允许更复杂的操作,例如差集/减法、交集以及嵌套字符类。这些更新包括解析,并确保与正则表达式相关的规则按预期运行。
🌐 We have updated ESLint to fully support the ECMAScript 2024 regular expression v flag. This flag allows more complex operations such as difference/subtraction, intersection, and nested character classes. These updates include parsing and ensuring that rules related to regular expressions are behaving as expected.
为扁平配置提供更好的错误消息
🌐 Better error messages for flat config
在我们继续进行平面配置的工作时,我们收到一些反馈,表示当意外使用 eslintrc 配置时,错误信息有点难以理解。我们增加了对 eslintrc 风格配置的更明确检查,以输出更有用的错误信息,并包含指向相关文档的链接。
🌐 As we continue to work on flat config, we received some feedback that the error messages were a bit difficult to understand when an eslintrc config was accidentally used. We added more explicit checking for eslintrc-style configs to output more useful error messages that include links to the relevant documentation.
特性
🌐 Features
8a93438功能:require-unicode-regexp支持v标志 (#17402) (SUZUKI Sosuke)1a2f966功能:no-useless-escape支持v标志 (#17420) (太田洋介)ee68d1d功能:no-empty-character-class支持v标志 (#17419) (Milos Djermanovic)853d32b功能:弃用 no-return-await (#17417) (Carlos Lopez)d4f02e4功能:no-control-regex支持v标志 (#17405) (太田洋介)2a35f3e功能:prefer-named-capture-group支持v标志 (#17409) (太田洋介)8ca8b50功能:为平面配置插件提供更好的错误信息 (#17399) (Nicholas C. Zakas)509f753功能:no-misleading-character-class支持v标志 (#17406) (太田洋介)3caf514功能:no-regex-spaces支持v标志 (#17407) (太田洋介)b7fad2b功能:prefer-regex-literals支持v标志 (#17410) (太田洋介)a6a3ad4功能:no-useless-backreference支持v标志 (#17408) (太田洋介)94954a7功能:no-invalid-regexp支持v标志 (#17404) (太田洋介)1af6eac功能:添加允许将空对象模式作为参数的选项 (#17365) (Tanuj Kanti)cf03104功能:改进配置错误信息 (#17385) (Nicholas C. Zakas)
错误修复
🌐 Bug Fixes
9803c7c修复:FlatESLint#getRulesMetaForResults 不应在遇到未知规则时抛出异常 (#17393) (Milos Djermanovic)42faa17修复:更新 no-loop-func 以避免与 no-undef 重叠 (#17358) (Matt Wilkinson)
文档
🌐 Documentation
4d474e3文档:更新 TypeScript 信息 (#17423) (James)091f44e文档:文件扩展名处理器弃用 (#17362) (Matt Wilkinson)9254a6c文档:更新自述文件(GitHub Actions 机器人)6d6dc51文档:修复open in playground按钮重叠问题 (#17403) (Tanuj Kanti)7fc3a2c文档:向 no-underscore-dangle 添加私有类特性信息 (#17386) (Matt Wilkinson)da73e58文档:迁移eslint-env配置注释 (#17390) (Francesco Trotta)80dffed文档:修复配置迁移指南中的“忽略文件”部分 (#17392) (Milos Djermanovic)8a9abb7文档:更新自述文件(GitHub Actions 机器人)7e9be4b文档:更新自述文件(GitHub Actions 机器人)0b0bbe0文档:更新自述文件(GitHub Actions 机器人)
杂项
🌐 Chores
