ESLint v8.x reached end-of-life on 2024-10-05 and is no longer maintained. Upgrade or consider long-term support options

ESLint v3.9.0 released

We just pushed ESLint v3.9.0, which is a minor release upgrade of ESLint. This release adds a new feature and fixes several bugs found in the previous release.

Highlights

This release includes some exciting new features, including a new results formatter and the ability for ESLint to support enhanced parsers!

New formatter

As part of our continuing effort to support our users coming from JSCS, we’re excited to release the new codeframe formatter!

error: Missing semicolon (semi) at file.js:1:13:
> 1 | var a = true
    |             ^
  2 |
  3 |


warning: There should be no space after '{' (object-curly-spacing) at file2.js:1:9:
> 1 | var b = { c: true};
    |         ^
  2 |
  3 |


1 error and 1 warning found.

Enhanced parsers

ESLint now supports enhanced parsers, which allows parsers to provide ESLint-specific services and functionality. This allows ESLint to support added functionality such as parsing type checkers.

New Rules

New Rule Options

New autofixing

Deprecated rules

With this release we deprecated prefer-reflect rule. The original intent of this rule now seems misguided as we have come to understand that Reflect methods are not actually intended to replace the Object counterparts the rule suggests, but rather exist as low-level primitives to be used with proxies in order to replicate the default behavior of various previously existing functionality. This rule will not be replaced.

Features

Enhancements

  • 644d25b Update: Add an ignoreRegExpLiterals option to max-len (fixes #3229) (#7346) (Wilfred Hughes)
  • 5e7af30 Update: Add CallExpression option for indent (fixes #5946) (#7189) (Teddy Katz)
  • e064a25 Update: add fixer for arrow-body-style (#7240) (Teddy Katz)
  • e0fe727 Update: add fixer for brace-style (fixes #7074) (#7347) (Teddy Katz)
  • ee3bcea Update: add fixer for newline-after-var (fixes #5959) (#7375) (Teddy Katz)
  • 5ed8b9b Update: Deprecate prefer-reflect (fixes #7226) (#7464) (Kai Cataldo)
  • 3813988 Update: fix false negative of no-extra-parens (fixes #7122) (#7432) (Toru Nagashima)
  • c675d7d Update: Fix no-useless-escape false negative in regexes (fixes #7424) (#7425) (Teddy Katz)
  • 1d5146f Update: fix wrong indentation about catch,finally (#7371) (Toru Nagashima)
  • d257428 Update: func-name-matching: add “always”/“never” option (fixes #7391) (#7428) (Jordan Harband)

Bug Fixes

  • 8dfd802 Fix: avoid camelcase false positive with NewExpressions (fixes #7363) (#7409) (Teddy Katz)
  • 6e9ff08 Fix: indent.js to support multiline array statements. (#7237) (Scott Stern)
  • 16367a8 Fix: Return statement spacing. Fix for indent rule. (fixes #7164) (#7197) (Imad Elyafi)
  • c710584 Fix: support for MemberExpression with function body. (#7400) (Scott Stern)
  • b200086 Fix: Support type annotations in array-bracket-spacing (#7445) (Jimmy Jia)

Documentation

  • 85d7e24 Docs: add additional examples for MemberExpressions in Indent rule. (#7408) (Scott Stern)
  • e8159b4 Docs: Fix typo and explain static func calls for class-methods-use-this (#7421) (Scott O’Hara)
  • 23062e2 Docs: Fix typo in no-unexpected-multiline (fixes #7442) (#7447) (Denis Sikuler)
  • 2aa1107 Docs: Include note on fatal: true in the node.js api section (#7376) (Simen Bekkhus)
  • 6875576 Docs: Remove broken links to jslinterrors.com (fixes #7368) (#7369) (Dannii Willis)

Build

  • f8153ad Build: Ensure absolute links in docs retain .md extensions (fixes #7419) (#7438) (Teddy Katz)
  • 2c8ed2d Build: ensure that all files are linted on bash (fixes #7426) (#7427) (Teddy Katz)

Chores

  • 18ff70f Chore: Enable no-useless-escape (#7403) (Vitor Balocco)
  • 77e3a34 Chore: Pin mock-fs dev dependency (#7466) (Gyandeep Singh)
  • 92ad43b Chore: Update deprecated rules in conf/eslint.json (#7467) (Kai Cataldo)

Upgrades

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

ESLint v9.16.0 released
2 min read

ESLint v9.16.0 released

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

ESLint v9.15.0 released
2 min read

ESLint v9.15.0 released

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

ESLint v9.14.0 released
2 min read

ESLint v9.14.0 released

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