ESLint v8.38.0 released

We just pushed ESLint v8.38.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

  • Rules can now use SourceCode#getDeclaredVariables(node) and SourceCode#getAncestors(node) methods. These methods work the same as context.getDeclaredVariables(node) and context.getAncestors() respectively, except that SourceCode#getAncestors isn’t limited to the currently traversed node and the node argument is mandatory. context.getDeclaredVariables and context.getAncestors are now considered deprecated in favor of the SourceCode methods. This change is part of the implementation of language plugins.

Features

  • a1d561d feat: Move getDeclaredVariables and getAncestors to SourceCode (#17059) (Nicholas C. Zakas)

Bug Fixes

Documentation

  • 7162d34 docs: Mention new config system is complete (#17068) (Nicholas C. Zakas)
  • 0fd6bb2 docs: Update README (GitHub Actions Bot)
  • c83531c docs: Update/remove external links, eg. point to eslint-community (#17061) (Pelle Wessman)
  • a3aa6f5 docs: Clarify no-div-regex rule docs (#17051) (Francesco Trotta)
  • b0f11cf docs: Update README (GitHub Actions Bot)
  • da8d52a docs: Update the second object instance for the “no-new” rule (#17020) (Ahmadou Waly NDIAYE)
  • 518130a docs: switch language based on current path (#16687) (Percy Ma)
  • 24206c4 docs: Update README (GitHub Actions Bot)

Chores

  • 59ed060 chore: upgrade @eslint/js@8.38.0 (#17069) (Milos Djermanovic)
  • 88c0898 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • cf682d2 refactor: simplify new-parens rule schema (#17060) (MHO)
  • 0dde022 ci: bump actions/add-to-project from 0.4.1 to 0.5.0 (#17055) (dependabot[bot])

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

ESLint v8.55.0 released
1 min read

ESLint v8.55.0 released

We just pushed ESLint v8.55.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 v8.54.0 released
1 min read

ESLint v8.54.0 released

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

What's coming in ESLint v9.0.0
4 min read

What's coming in ESLint v9.0.0

We want to share with you the significant changes that will be coming in v9.0.0 so you can better prepare for the changes and understand why the changes are necessary.