
亮点
🌐 Highlights
现在包括类型
🌐 Types now included
我们一直收到关于 @types/eslint 软件包在 v9 发布后没有更新的投诉。虽然我们确实对 v9 做了该软件包的初步更新,但很快我们就发现无法及时对该软件包进行常规更新。最终,我们决定,为了为 ESLint 提供我们想要的体验,唯一的办法是我们完全掌控类型定义。
🌐 We’ve been receiving complaints about the @types/eslint package not being updated after the v9 release. While we did do an initial update to the package for v9, it quickly became apparent that regular updates to that package could not be accomplished in a timely manner. Ultimately, we decided that the only way for us to provide the type of experience we want for ESLint is to take complete ownership of the type definitions.
因此,从本次发布开始,eslint 包现在会发布它自己的类型。起初,我们复制了 @types/eslint 的类型定义,以便提供平滑的过渡。(类型中有一个错误,我们已修复,但其他方面类型定义保持不变。)今后,我们将继续在常规发布周期中迭代和改进类型定义。
🌐 As a result, beginning with this release, the eslint package now publishes its own types. To start, we’ve copied the type definitions from @types/eslint in order to provide a smooth transition. (There was one bug in the types that we fixed, but otherwise it’s the same type definitions.) Going forward, we’ll continue to iterate and improve the type definitions as part of our regular release cycle.
我们感激所有在我们尚未准备好承担这项工作时,为 @types/eslint 包贡献类型的人。
🌐 We’re grateful to everyone who contributed types to the @types/eslint package at a time when we weren’t ready to take that work on.
其他显著变化
🌐 Other notable changes
require-unicode-regexp规则现在可以强制在正则表达式中使用v标志。查看新的 选项requireFlag。- 此版本还修复了在
id-length和no-invalid-regexp规则中发现的问题。
特性
🌐 Features
301b90d功能:添加类型 (#18854) (Nicholas C. Zakas)bcf0df5功能:在 id-length 规则中限制命名空间导入标识符 (#18849) (ChaedongIm)45c18e1功能:为require-unicode-regexp规则添加requireFlag选项 (#18836) (Brett Zamir)183b459功能:为no-invalid-regexp中的重复标记添加错误消息 (#18837) (Tanuj Kanti)c69b406功能:在no-invalid-regexp中报告允许的重复标志 (#18754) (Tanuj Kanti)
文档
🌐 Documentation
bee0e7a文档:更新自述文件 (#18865) (Milos Djermanovic)5d80b59文档:在自定义格式化器文档中指定ruleId可以是null(#18857) (Milos Djermanovic)156b1c3文档:更新自述文件(GitHub Actions 机器人)f6fdef9文档:更新自述文件(GitHub Actions 机器人)a20c870文档:更新自述文件(GitHub Actions 机器人)90e699b文档:更新自述文件(GitHub Actions 机器人)
杂项
🌐 Chores
24c3ff7杂务: 升级到 @eslint/js@9.10.0 (#18866) (Francesco Trotta)1ebdde1事务:更新 package.json 以适配 @eslint/js 版本发布(Jenkins)e8fc5bd杂项:将依赖 @eslint/core 更新到 ^0.5.0 (#18848) (renovate[bot])343f992重构:删除未使用的指令时不要使用node.value(#18835) (Milos Djermanovic)3db18b0重构:将 FileContext 提取到类中 (#18831) (Nicholas C. Zakas)931d650重构:使用 @eslint/plugin-kit (#18822) (Nicholas C. Zakas)ed5cf0c杂项:将依赖 @eslint/json 更新到 ^0.4.0 (#18829) (Milos Djermanovic)d1f0831杂项:添加缺失的 ID (#18817) (Strek)ec92813重构:配置类 (#18763) (Nicholas C. Zakas)
