ESLint v9.10.0 发布

我们刚刚发布了 ESLint v9.10.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。

亮点

🌐 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

特性

🌐 Features

文档

🌐 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)

最新的 ESLint 新闻、案例研究、教程和资源。

ESLint v10.3.0 发布
1 min read

ESLint v10.3.0 发布

我们刚刚发布了 ESLint v10.3.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。

ESLint v10.2.1 发布
1 min read

ESLint v10.2.1 发布

我们刚刚发布了 ESLint v10.2.1,这是 ESLint 的一个补丁版本升级。本次发布修复了上一版本中发现的几个错误。

ESLint v10.2.0 发布
2 min read

ESLint v10.2.0 发布

我们刚刚发布了 ESLint v10.2.0,这是 ESLint 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。