unstale

npm / eslint

eslint

What changed in eslint 6 to 10, from its official release notes, upgrade guides and advisories. Also covers @types/eslint. Sources checked 2026-12-04.

178 breaking3 security6 deprecations37 new APIs and options1 performance49 behavior and defaults7 tooling141 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

eslint 10185 changes

Breaking changes 52

  • Reports references inside immediately invoked function expressions.

    10.13.0release notes

  • Built-ins are exempted only when they reference the global.

    10.11.0release notes

  • The rule now reports unsafe labeled continue statements.

    10.11.0release notes

  • Reports max-nested-callbacks violations at the function head.

    10.5.0release notes

  • ESLint now searches upward from each linted file's directory for eslint.config.*, rather than using the previous cwd-based lookup by default.

    10.0.0upgrade guide

  • context.getCwd() has been removed; use context.cwd instead.

    10.0.0upgrade guide

  • context.getFilename() has been removed; use context.filename instead.

    10.0.0upgrade guide

  • context.getPhysicalFilename() has been removed; use context.physicalFilename instead.

    10.0.0upgrade guide

  • context.getSourceCode() has been removed; use context.sourceCode instead.

    10.0.0upgrade guide

  • context.parserOptions has been removed; use context.languageOptions or context.languageOptions.parserOptions.

    10.0.0upgrade guide

  • context.parserPath has been removed and has no replacement.

    10.0.0upgrade guide

  • eslint-env comments are now reported as errors.

    10.0.0release notesupgrade guide

  • Remove v10_config_lookup_from_file from this environment variable; the flag has been removed.

    10.0.0upgrade guide

  • The rules included in eslint:recommended have been updated.

    10.0.0release notes

  • Setting this variable to false no longer enables the old configuration format, which is no longer supported.

    10.0.0upgrade guide

  • Legacy eslintrc configuration support has been removed.

    10.0.0release notesupgrade guide

  • The fake FlatESLint export has been removed.

    10.0.0release notesupgrade guide

  • The func-names rule schema has been tightened.

    10.0.0release notes

  • The rule schema now rejects extra items in its options array that were previously accepted and ignored.

    10.0.0upgrade guide

  • Versions of jiti older than 2.2.0 are no longer supported.

    10.0.0release notes

  • Versions below 2.2.0 are no longer supported when using ESLint, including for TypeScript-authored config files.

    10.0.0upgrade guide

  • JSX identifiers are now tracked as references to variables in scope, improving scope analysis and potentially changing rule reports.

    10.0.0upgrade guide

  • The fake LegacyESLint export has been removed.

    10.0.0release notesupgrade guide

  • The configType option can no longer be set to eslintrc; remove the option to use the new configuration format.

    10.0.0upgrade guide

  • The deprecated LintMessage#nodeType field has been removed.

    10.0.0release notesupgrade guide

  • The rule schema now requires unique items in its option array.

    10.0.0release notesupgrade guide

  • no-shadow-restricted-names reports globalThis by default.

    10.0.0release notesupgrade guide

  • This rule is now enabled in eslint:recommended, so existing code may produce new lint errors.

    10.0.0upgrade guide

  • This rule is now enabled in eslint:recommended, so existing code may produce new lint errors.

    10.0.0upgrade guide

  • Supported Node.js versions are now ^20.19.0, ^22.13.0, or >=24.

    10.0.0release notesupgrade guide

  • ParserOptions no longer includes ecmaVersion.

    10.0.0release notes

  • ParserOptions no longer includes sourceType.

    10.0.0release notes

  • This rule is now enabled in eslint:recommended, so existing code may produce new lint errors.

    10.0.0upgrade guide

  • Program ranges now span the entire source text.

    10.0.0release notesupgrade guide

  • ResultsMeta now includes a color property.

    10.0.0release notes

  • Deprecated rule context methods have been removed.

    10.0.0release notes

  • All RuleFixer methods now assert that text is a string.

    10.0.0release notesupgrade guide

  • Valid test cases now use stricter assertions.

    10.0.0release notes

  • Valid test cases may no longer include an errors property; including it causes the test to fail.

    10.0.0upgrade guide

  • Valid test cases may no longer include an output property; including it causes the test to fail.

    10.0.0upgrade guide

  • Custom implementations must automatically resolve references to global variables declared in code, including var and function declarations.

    10.0.0upgrade guide

  • Global variables are added through ScopeManager#addGlobals().

    10.0.0release notesupgrade guide

  • Deprecated SourceCode methods have been removed.

    10.0.0release notes

  • getJSDocComment() has been removed and has no replacement.

    10.0.0upgrade guide

  • getTokenOrCommentAfter() has been removed; use getTokenAfter() with includeComments: true.

    10.0.0upgrade guide

  • getTokenOrCommentBefore() has been removed; use getTokenBefore() with includeComments: true.

    10.0.0upgrade guide

  • isSpaceBetweenTokens() has been removed; use isSpaceBetween().

    10.0.0upgrade guide

  • The TDZ scope type has been removed.

    10.0.0release notes

  • The deprecated TestCaseError#type field has been removed.

    10.0.0release notesupgrade guide

  • Inactive unstable_* flags have been removed.

    10.0.0release notes

  • The v10_* flags have been removed.

    10.0.0release notes

  • The feature flag has been removed; attempting to use it now results in an error.

    10.0.0upgrade guide

Security 1

  • The html formatter now escapes reserved characters in rule IDs, producing safer formatter output.

    10.8.0release notes

Deprecations 2

New APIs and options 16

  • Accepts tokens and comments as inputs.

    10.12.0release notes

  • Adds d and v flags to no-unexpected-multiline.

    10.10.0release notes

  • Adds checkConditionalExpressions to inspect conditional expressions for unmodified loop conditions.

    10.9.0release notes

  • ConfigObject is now exported from eslint/config for use by developers consuming ESLint configuration APIs.

    10.8.0release notes

  • Added support for constructor callbacks in max-nested-callbacks.

    10.7.0release notes

  • Added the errorClassNames option to preserve-caught-error.

    10.7.0release notes

  • Adds checkRelationalComparisons to control checking of relational comparisons.

    10.6.0release notes

  • Adds includeIgnoreFile() to eslint/config for incorporating ignore files into configuration.

    10.4.0release notes

  • Rules can declare the languages they support through meta.languages.

    10.2.0release notes

  • Temporal is now included among the ES2026 globals.

    10.2.0release notes

  • API support for bulk suppressions was added.

    10.1.0release notes

  • Configuration objects can include a name.

    10.0.0release notes

  • max-params adds the countThis option.

    10.0.0release notes

  • no-implied-eval now supports self as an option.

    10.0.0release notes

  • RuleTester adds error assertion options.

    10.0.0release notes

  • RuleTester adds the requireData assertion option.

    10.0.0release notes

Performance 1

  • The rule no longer uses a quadratic-time regular expression, improving lint performance.

    10.8.0release notes

Behavior and default changes 27

  • The rule now recognizes string and computed keys in descriptors.

    10.15.0release notes

  • The rule now checks __proto__ and assignment targets.

    10.15.0release notes

  • The rule now handles TypeScript type assertions.

    10.15.0release notes

  • The rule now checks the importKind of individual specifiers.

    10.15.0release notes

  • Checks globalThis for invalid object calls.

    10.13.0release notes

  • Checks yield* expressions for unsafe optional chaining.

    10.13.0release notes

  • The ignoreConstructors option now handles quoted properties.

    10.11.0release notes

  • Checks Object.prototype property names.

    10.10.0release notes

  • The radix rule now supports computed Number.parseInt member access.

    10.7.0release notes

  • The radix rule now reports invalid signed numeric radix values.

    10.7.0release notes

  • The rule now detects constant binary expressions involving Symbol() and BigInt().

    10.6.0release notes

  • Reports max-depth violations on keywords.

    10.5.0release notes

  • Reports max-lines-per-function violations at the function head.

    10.5.0release notes

  • Updates max-statements error locations to the function header.

    10.5.0release notes

  • The rule now checks sequence expressions in for-loop conditions.

    10.4.0release notes

  • The rule now provides suggestions for unused private class members.

    10.3.0release notes

  • The rule now recognizes Temporal objects when checking for disallowed object calls.

    10.2.0release notes

  • The no-var rule now applies fixes within TSModuleBlock nodes.

    10.1.0release notes

  • array-callback-return now handles Array.fromAsync callbacks.

    10.0.0release notes

  • The --color flag now takes precedence over environment variables when determining whether to use colorized output.

    10.0.0upgrade guide

  • JSX references are tracked during linting.

    10.0.0release notes

  • The --no-color flag now takes precedence over environment variables when determining whether to use colorized output.

    10.0.0upgrade guide

  • The stylish formatter now respects NO_COLOR when determining whether to disable colorized output.

    10.0.0upgrade guide

  • The stylish formatter now respects NODE_DISABLE_COLORS when determining whether to disable colorized output.

    10.0.0upgrade guide

  • Glob patterns now support POSIX character classes in bracket expressions for matching file names.

    10.0.0upgrade guide

  • RuleTester outputs the failing test case index.

    10.0.0release notes

  • The built-in formatter now uses Node.js styleText instead of chalk, changing how environment variables and terminal capabilities determine color output.

    10.0.0upgrade guide

Tooling 5

  • Added suggestions to no-compare-neg-zero.

    10.7.0release notes

  • Reports no-with violations at the with keyword.

    10.5.0release notes

  • A migration codemod upgrades ESLint projects from v9 to v10 and includes independently runnable codemods for config, custom rules, RuleTester, and Linter/ESLint API usage.

    10.0.0upgrade guide

  • Failure locations are estimated for RuleTester assertions.

    10.0.0release notes

  • ESLint replaces chalk with styleText for terminal styling.

    10.0.0release notes

Fixes and other changes 81

  • The reported error location now points to the head.

    10.15.0release notes

  • The rule now skips its suggestion when the object is super.

    10.15.0release notes

  • The autofix now preserves necessary parentheses.

    10.15.0release notes

  • The autofix now preserves inline type modifiers.

    10.15.0release notes

  • The autofix now preserves TypeScript type parameters.

    10.15.0release notes

  • Fixes property descriptor handling in the rule.

    10.14.0release notes

  • Handles LS, PS, and empty hashbang comments.

    10.14.0release notes

  • Prevents a crash on accessor fields without an initializer.

    10.14.0release notes

  • Fixes a crash when global objects are used as property values.

    10.14.0release notes

  • Avoids invalid autofixes for super methods.

    10.14.0release notes

  • Prevents invalid autofixes at the start of a statement.

    10.14.0release notes

  • Prevents combined fixes from creating a redeclared let.

    10.13.0release notes

  • Fixes handling of astral letters.

    10.12.0release notes

  • Adds the missing space after else in autofixes.

    10.12.0release notes

  • Supports TSFunctionType nodes.

    10.12.0release notes

  • Corrects messages for long private names.

    10.12.0release notes

  • Skips lines containing multiple comments.

    10.12.0release notes

  • Handles astral letters when enforcing capitalization conventions.

    10.12.0release notes

  • Avoids a false positive for 0.e5.

    10.12.0release notes

  • Avoids a false positive in conditional tests.

    10.12.0release notes

  • Corrects autofixing for async function bases.

    10.12.0release notes

  • The rule no longer reports __proto__ properties.

    10.11.0release notes

  • The rule now ignores __proto__ properties.

    10.11.0release notes

  • TimePass.parse is now optional in the types.

    10.11.0release notes

  • Adds support for __proto__ in exported comments.

    10.10.0release notes

  • Fixes a false positive for UTC calls when properties is false.

    10.10.0release notes

  • Fixes false negatives involving class fields and static blocks.

    10.10.0release notes

  • Ignores static imports when reporting unreachable code.

    10.10.0release notes

  • Prevents the autofix from breaking when Object is shadowed.

    10.10.0release notes

  • Fixes a false positive for numeric literals with a trailing decimal point.

    10.9.1release notes

  • The rule now handles numeric underflow cases.

    10.9.0release notes

  • Prevents unsafe autofixes when functions are hoisted.

    10.9.0release notes

  • Prevents autofixes when a var is shadowed by a catch parameter.

    10.9.0release notes

  • Prevents invalid autofixes that create a tagged template call.

    10.9.0release notes

  • False positives are corrected for the accessor-pairs rule.

    10.8.1release notes

  • False positives are corrected for the getter-return rule.

    10.8.1release notes

  • Meta-property names are now ignored when checking identifiers against the denylist.

    10.8.1release notes

  • Meta-property names are now ignored when checking identifiers against the configured pattern.

    10.8.1release notes

  • The autofix now prevents an ASI hazard when removing unused labels.

    10.8.1release notes

  • The removeVar suggestion now handles ASI hazards safely.

    10.8.1release notes

  • Ignore configurations are now applied to computed methods.

    10.8.0release notes

  • The rule no longer crashes when all loop types are ignored.

    10.8.0release notes

  • The rule now adds a semicolon when inserting parentheses.

    10.8.0release notes

  • The rule now handles NewExpression nodes with a parenthesized callee.

    10.8.0release notes

  • Fixed handling of static template literals.

    10.7.0release notes

  • The null option no longer reports non-equality operators.

    10.7.0release notes

  • ignoreClassesWithImplements now applies to class expressions.

    10.7.0release notes

  • Avoided false positives for shadowed RegExp.

    10.7.0release notes

  • Sequence expression operands are now parenthesized correctly.

    10.7.0release notes

  • Avoided false positives for shadowed RegExp.

    10.7.0release notes

  • Avoided false positives for shadowed globals.

    10.7.0release notes

  • Cause insertion now occurs outside wrapping parentheses.

    10.7.0release notes

  • Avoided false positives for spread arguments.

    10.7.0release notes

  • Avoided false positives on shadowed NaN and Number.

    10.7.0release notes

  • Restores the rule's report range for files containing too many classes.

    10.6.0release notes

  • Fixes callback detection for IIFEs and avoids reporting inner non-callbacks.

    10.6.0release notes

  • The rule now correctly accounts for a shadowed Boolean identifier.

    10.6.0release notes

  • Suppresses an invalid class suggestion produced by the rule.

    10.6.0release notes

  • The rule no longer reports shadowed undefined identifiers.

    10.6.0release notes

  • Fixes an invalid autofix when the rule reports an expression at the start of a statement.

    10.6.0release notes

  • The rule no longer reports shadowed undefined identifiers or shadowed Promise references.

    10.6.0release notes

  • The rule no longer reports shadowed undefined identifiers.

    10.6.0release notes

  • Corrects max-depth handling for else-if chains.

    10.5.0release notes

  • Corrected stack tracking for max-nested-callbacks violations.

    10.5.0release notes

  • Adds missing CodePath and CodePathSegment types for consumers of ESLint's type definitions.

    10.4.1release notes

  • Failures from delegated commands are now propagated so command-line failures are reported correctly.

    10.4.1release notes

  • Corrects an invalid autofix when a newline appears after async.

    10.4.1release notes

  • Prevents a false positive for a reference in a finally block.

    10.4.1release notes

  • Deprecated rule replacements that are not arrays are now handled correctly.

    10.4.0release notes

  • ESLint now handles an unavailable require cache, preventing failures when the cache cannot be accessed.

    9.39.5, 10.3.0release notesrelease notes

  • Rule suggestions no longer cause unintended continuation in a class body.

    10.3.0release notes

  • Generator yield resumption paths are modeled correctly in code path analysis.

    10.2.1release notes

  • Language and processor validation errors are clarified, helping diagnose invalid configuration.

    10.2.1release notes

  • The rule no longer reports false positives when Promise is shadowed.

    10.2.1release notes

  • The no-var rule no longer autofixes when a variable is used before its declaration.

    10.1.0release notes

  • Messages now include the variable name, making reported useless assignments easier to identify.

    10.0.3release notes

  • The error message for unused suppressions was updated.

    10.0.1release notes

  • The name property has been restored to the ESLint core configs exported from this package.

    10.0.0upgrade guide

  • FORCE_COLOR remains supported to force-enable colors in formatter output.

    10.0.0upgrade guide

  • no-restricted-import messages have been corrected.

    10.0.0release notes

  • verifyAndFix now receives filename as its third argument.

    10.0.0release notes

eslint 9127 changes

Breaking changes 85

  • The rule's allow option now only accepts an array of strings.

    9.0.0upgrade guiderelease notes

  • The no-unused-vars rule now checks whether caught errors are used by default.

    9.0.0upgrade guiderelease notes

  • The checkstyle formatter was removed from core; install eslint-formatter-checkstyle to use it.

    9.0.0upgrade guide

  • The deprecated CodePath.currentSegments property has been removed.

    9.0.0upgrade guiderelease notes

  • The compact formatter was removed from core; install eslint-formatter-compact to use it.

    9.0.0upgrade guide

  • Multiple configuration comments for the same rule are disallowed.

    9.0.0release notes

  • Deprecated context methods were removed.

    9.0.0release notes

  • Removed from context; use sourceCode.getAllComments() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getAncestors(node) instead.

    9.0.0upgrade guide

  • Removed from context; replace it with the appropriate sourceCode comment methods.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getCommentsAfter() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getCommentsBefore() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getCommentsInside() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getDeclaredVariables() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getFirstToken() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getFirstTokens() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getJSDocComment() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getLastToken() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getLastTokens() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getNodeByRangeIndex() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getScope(node) instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getText() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getLines() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokenAfter() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokenBefore() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokenByRangeStart() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokens() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokensAfter() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokensBefore() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.getTokensBetween() instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.markVariableAsUsed(name, node) instead.

    9.0.0upgrade guide

  • Removed from context; use sourceCode.parserServices instead.

    9.0.0upgrade guide

  • The no-useless-computed-key rule now flags unnecessary computed member names in classes by default.

    9.0.0upgrade guiderelease notes

  • A configuration comment specifying only severity now retains options for that rule from the config file and overrides only its severity.

    9.0.0upgrade guide

  • The string preset is no longer accepted in a flat config array; use @eslint/js presets instead.

    9.0.0upgrade guide

  • The preset now enables no-constant-binary-expression, no-empty-static-block, no-new-native-nonconstructor, and no-unused-private-class-members, and removes four previously enabled rules.

    9.0.0upgrade guiderelease notes

  • The string preset is no longer accepted in a flat config array; use @eslint/js presets instead.

    9.0.0upgrade guide

  • The FlatRuleTester export has been removed from this entry point.

    9.0.0upgrade guide

  • eslint.config.js is the default configuration format; eslintrc is deprecated and is no longer searched for automatically.

    9.0.0upgrade guiderelease notes

  • Multiple configuration comments for the same rule are disallowed: the first applies and subsequent comments are reported as lint errors.

    9.0.0upgrade guide

  • FlatESLint is renamed to ESLint, while the v8 ESLint class is renamed to LegacyESLint.

    9.0.0upgrade guiderelease notes

  • Variable names followed by a colon and value are ignored as invalid; directives should use comma-separated variable names.

    9.0.0upgrade guide

  • String configurations are no longer supported in flat config arrays.

    9.0.0release notes

  • All formatters except html, json, json-with-metadata, and stylish were removed.

    9.0.0release notes

  • Rules exported as functions are no longer supported; rules must use an object with a create() method.

    9.0.0upgrade guiderelease notes

  • The jslint-xml formatter was removed from core; install eslint-formatter-jslint-xml to use it.

    9.0.0upgrade guide

  • The junit formatter was removed from core; install eslint-formatter-junit to use it.

    9.0.0upgrade guide

  • Set configType to eslintrc in the constructor to retain v8.x Linter functionality.

    9.0.0upgrade guide

  • This Linter method is no longer available; configure parsers through flat config languageOptions instead.

    9.0.0upgrade guide

  • This Linter method is no longer available; define rules in flat config plugins instead.

    9.0.0upgrade guide

  • This Linter method is no longer available; define rules in flat config plugins instead.

    9.0.0upgrade guide

  • This Linter method is no longer available.

    9.0.0upgrade guide

  • The config argument must use flat config format.

    9.0.0upgrade guide

  • Rules that receive options must specify meta.schema or ESLint throws an error.

    9.0.0upgrade guide

  • This rule is now enabled in eslint:recommended.

    9.0.0upgrade guide

  • The rule's schema is stricter and it does not accept any options.

    9.0.0upgrade guide

  • This rule is now enabled in eslint:recommended.

    9.0.0upgrade guide

  • The rule now reports -(-foo) and foo - 0 by default; set allow to ["-", "- -"] to retain its previous behavior.

    9.0.0upgrade guiderelease notes

  • The rule has new default behavior and an option; it is also no longer included in eslint:recommended.

    9.0.0release notes

  • The allowConstructorFlags option now matches flags case-sensitively.

    9.0.0upgrade guiderelease notes

  • This rule is now enabled in eslint:recommended.

    9.0.0upgrade guide

  • With flat config, omitting patterns lints the current directory; with eslintrc, omitting patterns produces an error.

    9.0.0upgrade guiderelease notes

  • The rule's schema is stricter and accepts one option: an object with an allowInParentheses boolean property.

    9.0.0upgrade guide

  • This rule is now enabled in eslint:recommended.

    9.0.0upgrade guide

  • varsIgnorePattern no longer applies to catch-clause arguments; use caughtErrorsIgnorePattern to specify ignore patterns for catch variables.

    9.0.0upgrade guide

  • ESLint v9 no longer supports Node.js versions below v18.18 or v19; supported versions are v18.18.0 and above, v20.9.0 and above, and v21 and above.

    9.0.0upgrade guiderelease notes

  • Use this flag to preserve the v8 behavior where running ESLint without patterns exits with code 0.

    9.0.0upgrade guide

  • The flag now prevents rules set to warn from executing, except when --max-warnings is used; in that case, those rules execute but their output is suppressed.

    9.0.0upgrade guiderelease notes

  • The require-jsdoc rule was removed; use equivalent replacement rules in eslint-plugin-jsdoc.

    9.0.0upgrade guiderelease notes

  • RuleTester checks that messages do not contain unsubstituted placeholders.

    9.0.0upgrade guiderelease notes

  • Suggestion test objects must specify desc or messageId, but not both, and suggestion messages for one problem must be unique.

    9.0.0upgrade guide

  • Suggestion test objects must specify output, and that output must change the code and parse as valid syntax.

    9.0.0upgrade guide

  • Identical test cases are automatically detected, and filename and only properties are type-checked.

    9.0.0upgrade guide

  • Test error objects must specify message or messageId.

    9.0.0upgrade guide

  • A test case's output must differ from code; omit output or set it to null when no autofix is expected.

    9.0.0upgrade guide

  • Tests must specify suggestions when the actual error provides them; omitting the property asserts there are none.

    9.0.0upgrade guide

  • FlatRuleTester is renamed to RuleTester, the v8 RuleTester is removed, and the flat-config RuleTester defaults to ecmaVersion latest and sourceType module.

    9.0.0upgrade guide

  • FlatRuleTester is now named RuleTester; the API names were also swapped.

    9.0.0release notes

  • Removed; replace it with getCommentsBefore(), getCommentsAfter(), or getCommentsInside().

    9.0.0upgrade guiderelease notes

  • AST traversal moved into SourceCode, changing where custom rules access traversal functionality.

    9.0.0release notes

  • Parsing errors are now checked in suggestion fixes.

    9.0.0release notes

  • The tap formatter was removed from core; install eslint-formatter-tap to use it.

    9.0.0upgrade guide

  • The unix formatter was removed from core; install eslint-formatter-unix to use it.

    9.0.0upgrade guide

  • The valid-jsdoc rule was removed; use equivalent replacement rules in eslint-plugin-jsdoc.

    9.0.0upgrade guiderelease notes

  • The visualstudio formatter was removed from core; install eslint-formatter-visualstudio to use it.

    9.0.0upgrade guide

Security 2

  • ajv was updated to address security vulnerabilities.

    9.39.4release notes

  • A security vulnerability patch was applied for ESLint 9.x.

    9.39.4release notes

Deprecations 2

  • ESLint now emits a warning when it detects an .eslintignore file.

    9.0.0release notes

  • no-new-symbol is deprecated; no-new-native-nonconstructor is recommended instead.

    9.0.0release notes

New APIs and options 11

  • The no-inner-declarations option defaults to allowing block-level functions in strict mode when ecmaVersion is 2015 or above.

    9.0.0upgrade guide

  • Enabled eslint.config.cjs as a flat config file name.

    9.0.0release notes

  • Enabled eslint.config.mjs as a flat config file name.

    9.0.0release notes

  • Added a CLI flag to inspect configuration.

    9.0.0release notes

  • Added loadESLint() to provide an API for loading ESLint in v9.

    9.0.0release notes

  • Added an option to report unused fallthrough comments.

    9.0.0release notes

  • Added allowImportNames to permit specified import names.

    9.0.0release notes

  • Added an option to ignore classes with a static initialization block.

    9.0.0release notes

  • Added reportUsedIgnorePattern to report variables that match an ignore pattern but are used.

    9.0.0release notes

  • Added the no-useless-assignment rule.

    9.0.0release notes

  • Added rule performance statistics for flat ESLint.

    9.0.0release notes

Behavior and default changes 13

  • The rule highlights only the static block header.

    9.39.0release notes

  • Error locations now point to the duplicate key.

    9.39.0release notes

  • The rule now highlights only the function header, changing where complexity warnings appear.

    9.38.0release notes

  • Code path information is precalculated before rule traversal, so it is complete wherever accessed inside a rule.

    9.0.0upgrade guide

  • Unused disable directives now produce warnings by default.

    9.0.0release notes

  • ESLint now maintains the latest ECMAScript version.

    9.0.0release notes

  • Set ESLINT_USE_FLAT_CONFIG to false to continue using the deprecated eslintrc configuration format.

    9.0.0upgrade guide

  • This rule is no longer enabled in eslint:recommended.

    9.0.0upgrade guide

  • This rule is no longer enabled in eslint:recommended.

    9.0.0upgrade guiderelease notes

  • This rule is no longer enabled in eslint:recommended.

    9.0.0upgrade guide

  • This rule is no longer enabled in eslint:recommended.

    9.0.0upgrade guide

  • Multiple paths entries with the same name now all apply, allowing different restrictions and messages for imported names.

    9.0.0upgrade guiderelease notes

  • The flag now writes a file to disk even when the output is empty.

    9.0.0upgrade guiderelease notes

Fixes and other changes 14

  • Restored TypeScript 4.0 compatibility in ESLint types.

    9.39.3release notes

  • ESLint now warns when eslint-env configuration comments are found.

    9.39.2release notes

  • Only the node is passed to JS language visitor methods, correcting the visitor method arguments.

    9.39.1release notes

  • Error locations are updated.

    9.39.0release notes

  • The rule now allows JSDoc comments.

    9.39.0release notes

  • Program nodes now use the AST.Program type.

    9.39.0release notes

  • Rule typings are corrected for more accurate TypeScript usage.

    9.39.0release notes

  • Scope typings are corrected for more accurate TypeScript usage.

    9.39.0release notes

  • Forward traversal now passes step arguments to visitors.

    9.39.0release notes

  • The error message is improved when a suggestion lacks a fix function.

    9.39.0release notes

  • Timing reporting is unified for concurrent linting.

    9.39.0release notes

  • The rule no longer incorrectly reports some numeric literals written with e notation.

    9.38.0release notes

  • Type support for isolated dependencies in pnpm was improved.

    9.38.0release notes

  • The SourceCode type definitions were corrected for developers using the API.

    9.38.0release notes

eslint 837 changes

Breaking changes 15

New APIs and options 2

  • Added enforceForClassFields to apply the rule to class fields.

    8.0.0release notes

  • Added the ignoreExpressions option.

    8.0.0release notes

Behavior and default changes 5

Tooling 1

Fixes and other changes 14

eslint 767 changes

Breaking changes 25

Deprecations 2

  • Using ~/.eslintrc is now deprecated at runtime.

    7.0.0release notes

  • The Node.js and CommonJS categories of rules were deprecated.

    7.0.0release notes

New APIs and options 8

  • The rule now has separate pattern and expression options.

    7.0.0release notes

  • The rule now handles nested arrays.

    7.0.0release notes

  • Added a rule requiring default clauses to be last in switch statements.

    7.0.0release notes

  • Adds the offsetTernaryExpressions option to the indent rule.

    7.0.0release notes

  • Adds the outerIIFEBody option value off to the indent rule.

    7.0.0release notes

  • Adds a rule for restricting exports.

    7.0.0release notes

  • Adds a rule for detecting useless regular-expression backreferences.

    7.0.0release notes

  • Adds an option to allow void as a statement.

    7.0.0release notes

Behavior and default changes 4

  • Rules now support globalThis.

    7.0.0release notes

  • The rule now checks template literals and introspects arrays.

    7.0.0release notes

  • The rule now considers configured environments and supports globalThis.

    7.0.0release notes

  • The rule now reports the operator location.

    7.0.0release notes

Tooling 1

  • RuleTester now supports testing suggestions with data.

    7.0.0release notes

Fixes and other changes 27

  • The rule's reported location was improved.

    7.0.0release notes

  • The rule now checks assignment property targets and avoids false positives with computed properties.

    7.0.0release notes

  • The rule's reported location was improved.

    7.0.0release notes

  • Handles locally unsupported regular expressions in computed property keys.

    7.0.0release notes

  • Improves the reported location for computed-property-spacing violations.

    7.0.0release notes

  • The never option now reports the correct message.

    7.0.0release notes

  • The rule's reported location was improved.

    7.0.0release notes

  • The rule now ignores ObjectPatterns.

    7.0.0release notes

  • Fixes Windows path parsing in JUnit output.

    7.0.0release notes

  • Corrects how the rule counts the length of JSX comments.

    7.0.0release notes

  • The rule's reported location was improved.

    7.0.0release notes

  • newBasePath must be an absolute path.

    7.0.0release notes

  • The rule's reported location was improved.

    7.0.0release notes

  • The rule's reported location was improved.

    7.0.0release notes

  • Async methods are now supported by the allow option.

    7.0.0release notes

  • The rule's reports now include an end location.

    7.0.0release notes

  • The rule's reports now include an end location.

    7.0.0release notes

  • The inconsistently works option behavior was fixed.

    7.0.0release notes

  • Reports double extra parentheses and fixes CallExpression callee false negatives.

    7.0.0release notes

  • Stops reporting multiline strings as violations.

    7.0.0release notes

  • Comma operands in a for-loop afterthought are now allowed.

    7.0.0release notes

  • The rule's reports now include an end location.

    7.0.0release notes

  • Fixes false negatives for export * and improves reporting for importNames restrictions.

    7.0.0release notes

  • The rule now handles TemplateLiteral module names.

    7.0.0release notes

  • The rule's reports now include an end location.

    7.0.0release notes

  • Async generators are now ignored by the rule.

    7.0.0release notes

  • The rule's reported location was improved.

    7.0.0release notes

eslint 66 changes

Breaking changes 1

Fixes and other changes 5