新闻与更新

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

ESLint v7.0.0 发布
5 min read

ESLint v7.0.0 发布

我们刚刚发布了 ESLint v7.0.0,这是 ESLint 的一个重大版本升级。此版本增加了一些新功能,并修复了先前版本中发现的几个错误。此版本也有一些重大更改,因此请仔细阅读以下内容。

ESLint v7.0.0 中的新内容
4 min read

ESLint v7.0.0 中的新内容

我们想与你分享将在 v7.0.0 中出现的重要变化,以便你能够更好地为这些变化做准备,并理解这些变化为何是必要的。

ESLint's New Rule Format
3 min read

ESLint's New Rule Format

As part of automating the process of generating rules documentation, ESLint rules now have a new format. We explain the elements of this new format and how you can automatically transform rules from the old format to the new one. If you're a plugin author, it is recommended to update your custom rules accordingly.

Formatter Breaking Change
2 min read

Formatter Breaking Change

In the next minor release of ESLint (which will be 0.7.1 due to us incorrectly pushing 0.6.2 as 0.7.0 last month), there will be a breaking change to the way formatters operate.

Breaking change to ESLint config files
1 min read

Breaking change to ESLint config files

In the next version of ESLint, there is a breaking change to remove the capability to use JavaScript files as configuration files. All configuration files must be in JSON format.

Breaking change to ESLint default formatter
1 min read

Breaking change to ESLint default formatter

In the next version of ESLint, scheduled for release next week, there is a breaking change to the default formatter.