Packages

eslint

10.15.0 · 13 Nov 2026MIT217.1M / weekRepositoryHomepagenpmAtom feed

Your version

9.0.0

major5 Apr 2024Where it was published

9.39.5 is the newest release of 9.x.

npm marks 9.0.0 as deprecated: This version is no longer supported. Please see eslint.org/version-support for other options.

In short

38 breaking21 new14 fixed131 internal

  • Breaking

    Correct camelcase rule schema for allow option

  • Breaking

    Move AST traversal into SourceCode

  • Breaking

    Disallow multiple configuration comments for same rule

  • Breaking

    Rule Tester checks for missing placeholder data in the message

  • Breaking

    Default for enforceForClassMembers in no-useless-computed-key

  • Breaking

    Stricter rule test validations

  • Breaking

    no-unused-vars default caughtErrors to 'all' (#18043) (Josh Goldberg ✨)

  • Breaking

    no-restricted-imports allow multiple config entries for same path

Release note

Breaking Changes

  • Breaking

    Correct camelcase rule schema for allow option

  • Breaking

    Move AST traversal into SourceCode

  • Breaking

    Disallow multiple configuration comments for same rule

  • Breaking

    Rule Tester checks for missing placeholder data in the message

  • Breaking

    Default for enforceForClassMembers in no-useless-computed-key

  • Breaking

    Stricter rule test validations

  • Breaking

    no-unused-vars default caughtErrors to 'all' (#18043) (Josh Goldberg ✨)

  • Breaking

    no-restricted-imports allow multiple config entries for same path

  • Breaking

    Detect duplicate test cases

  • Breaking

    no-inner-declaration new default behaviour and option

  • Breaking

    Handle --output-file for empty output when saving to disk

  • Breaking

    Upgrade eslint-scope@8.0.0

  • Breaking

    no-unused-vars varsIgnorePattern behavior with catch arguments

  • Breaking

    Configuration comments with just severity should retain options

  • Breaking

    Remove CodePath#currentSegments

  • Breaking

    FlatRuleTester -> RuleTester

  • Breaking

    Remove no-inner-declarations from eslint:recommended

  • Breaking

    cadfbcd feat!: Rename FlatESLint to ESLint

  • Breaking

    Skip running warnings in --quiet mode

  • Breaking

    Set default schema:, drop support for function-style rules

  • Breaking

    Add two more cases to no-implicit-coercion

  • Breaking

    Switch Linter to flat config by default

  • Breaking

    Parsing 'exported' comment using parseListConfig

  • Breaking

    Remove valid-jsdoc and require-jsdoc

  • Breaking

    Behavior of CLI when no arguments are passed

  • Breaking

    Update shouldUseFlatConfig and CLI so flat config is default

  • Breaking

    Deprecate no-new-symbol, recommend no-new-native-nonconstructor

  • Breaking

    Check for parsing errors in suggestion fixes

  • Breaking

    Assert suggestion messages are unique in rule testers (#17532) (Josh Goldberg ✨)

  • Breaking

    no-invalid-regexp make allowConstructorFlags case-sensitive (#17533) (Josh Goldberg ✨)

  • Breaking

    no-sequences rule schema correction

  • Breaking

    Update eslint:recommended configuration

  • Breaking

    Drop support for string configurations in flat config array

  • Breaking

    Remove SourceCode#getComments()

  • Breaking

    Remove deprecated context methods

  • Breaking

    Swap FlatESLint-ESLint, FlatRuleTester-RuleTester in API

  • Breaking

    Remove formatters except html, json(-with-metadata), and stylish (#17531) (Josh Goldberg ✨)

  • Breaking

    Require Node.js ^18.18.0 || ^20.9.0 || >=21.1.0

Features

  • Add --inspect-config CLI flag

  • Add reportUsedIgnorePattern option to no-unused-vars rule

  • Show config names in error messages

  • Rule Performance Statistics for flat ESLint

  • use-isnan report NaN in indexOf and lastIndexOf with fromIndex

  • Add reportUnusedFallthroughComment option to no-fallthrough rule

  • Add ignoreClassWithStaticInitBlock option to no-unused-vars

  • Make no-misleading-character-class report more granular errors

  • Update complexity rule for optional chaining & default values

  • no-restricted-imports option added allowImportNames

  • Add suggestions to use-isnan in indexOf & lastIndexOf calls

  • Add loadESLint() API method for v9

  • Add suggestions to use-isnan in binary expressions

  • Fix false negatives in no-this-before-super

  • Convert unsafe autofixes to suggestions in no-implicit-coercion

  • Emit warning when .eslintignore file is detected

  • Maintain latest ecma version in ESLint

  • Add no-useless-assignment rule

  • no-misleading-character-class granular errors (#17515) (Josh Goldberg ✨)

  • Enable eslint.config.mjs and eslint.config.cjs

  • Warn by default for unused disable directives

Bug Fixes

  • Support using declarations in no-lone-blocks

  • Rule tester ignore irrelevant test case properties

  • Flat config name on ignores object

  • constructor-super false positives with loops

  • Load plugins in the CLI in flat config mode

  • Improve error message for invalid rule config

  • Stop linting files after an error

  • Validate options when comment with just severity enables rule

  • use-isnan doesn't report on SequenceExpressions

  • Handle absolute file paths in RuleTester

  • Ensure config keys are printed for config errors

  • no-misleading-character-class edge cases with granular errors

  • Deep merge behavior in flat config

  • Allow circular references in config

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.