ESLint v8.x end-of-life is 2024-10-05 and will not be maintained after that. Upgrade or consider long-term support options

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)

The latest ESLint news, case studies, tutorials, and resources.

Trunk becomes ESLint gold sponsor
1 min read

Trunk becomes ESLint gold sponsor

We are happy to announce that Trunk is a gold sponsor of ESLint. We are grateful to founders Eli Schleifer and David Apirian, as well as the whole Trunk team.

ESLint v9.9.1 released
1 min read

ESLint v9.9.1 released

We just pushed ESLint v9.9.1, which is a patch release upgrade of ESLint. This release fixes several bugs found in the previous release.