ESLint v1.9.0 released

We just pushed ESLint v1.9.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

Here are some highlights of changes in this release.

New Rules

Better npm 3 Support

Due to the changes in dependency management in npm 3, some users were getting errors when attempting to run ESLint. We’ve updated our dependencies and ESLint should now work correctly for users of npm 3.

Features

  • New: Add no-case-declarations rule (fixes #4278) (Erik Arvidsson)

Enhancements

  • Update: Make radix accept a “as-needed” option (fixes #4048) (Michał Gołębiowski)
  • Update: Add default to max-nested-callbacks (fixes #4297) (alberto)
  • Update: Add quotes to error messages to improve clarity (fixes #4313) (alberto)
  • Update: Extract glob and filesystem logic from cli-engine (fixes #4305) (Ian VanSchooten)
  • Update: Detect and fix wrong linebreaks (fixes #3981) (alberto)

Bug Fixes

  • Fix: Update the message to include number of lines (fixes #4342) (Brian Delahunty)
  • Fix: Fixer to not overlap ranges among fix objects (fixes #4321) (Gyandeep Singh)
  • Fix: Check comments in space-in-parens (fixes #4302) (alberto)
  • Fix: tests failing due to differences in temporary paths (fixes #4324) (alberto)
  • Fix: Make tests compatible with Windows (fixes #4315) (Ian VanSchooten)
  • Fix: ensure using correct estraverse (fixes #3951) (Toru Nagashima)

文档

🌐 Documentation

  • Docs: ASI causes problem whether semicolons are used or not (Thai Pangsakulyanont)
  • Docs: update docs about using gitignore (Mateusz Derks)

Dependency Upgrades

  • Upgrade: Upgrade various dependencies (fixes #4303) (Gyandeep Singh)
  • Build: Clarify commit-check messages (fixes #4256) (Ian VanSchooten)
  • Build: Add node 5 to travis build (fixes #4310) (Gyandeep Singh)

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