ESLint v5.13.0 released

We just pushed ESLint v5.13.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

Highlights

Configuration of globals has been improved with three new options: “off”, “readable”, and “writeable”.

  • “off”: Completely disables a global variable that was previously defined.
  • “readable”: Equivalent to the old false value, “readable” global variables are in scope but cannot be written to.
  • “writeable”: Equivalent to the old true value, “writeable” global variables can be read from and written to.

Configurations using the old true/false values will continue to work, but we encourage you to use the newer, more explicit options.

Check out the documentation on specifying globals for more details!

Features

  • 0a3c3ff New: Allow globals to be disabled/configured with strings (fixes #9940) (#11338) (Teddy Katz)

Enhancements

Bug Fixes

文档

🌐 Documentation

  • fa2f370 Docs: update rule configuration values in examples (#11323) (Kai Cataldo)
  • c464e27 Docs: Rename result -> foo (#11210) (Alexis Tyler)

Chores

  • 91c8884 Chore: use local function to append “s” instead of a package (#11293) (Timo Tijhof)
  • 9005e63 Chore: increase camelcase test coverage (#11299) (Redmond Tran)
  • dccee63 Chore: avoid hard-coding the list of core rules in eslint:recommended (#11336) (Teddy Katz)
  • c1fd6f5 Chore: remove undocumented Linter#rules property (refs #9161) (#11335) (Teddy Katz)
  • 36e3356 Chore: remove dead code for loading rules (#11334) (Teddy Katz)

最新的 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 的一次小版本升级。此版本添加了一些新功能,并修复了上一版本中发现的几个错误。