unstale

npm / eslint-plugin-perfectionist

eslint-plugin-perfectionist

What changed in eslint-plugin-perfectionist 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

33 breaking61 new APIs and options4 performance16 behavior and defaults3 tooling56 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

eslint-plugin-perfectionist 5118 changes

Breaking changes 18

  • Rejects newline options combined with partitioning by newlines.

    5.13.0release notes

  • Multiline trailing block comments are no longer treated as leading comments.

    5.10.0release notes

  • The sort-arrays rule requires options to be provided.

    5.10.0release notes

  • Deprecated selector support for multiple rules was removed.

    5.0.0release notes

  • The plugin is ESM-only.

    5.0.0release notes

  • The fallback sort schema now requires a sorting type.

    5.0.0release notes

  • Support for group kinds was removed.

    5.0.0release notes

  • The deprecated setting for newlines between always and never was removed.

    5.0.0release notes

  • Node.js 18 is no longer supported.

    5.0.0release notes

  • Deprecated object-based custom groups are no longer supported.

    5.0.0release notes

  • The force numeric sort behavior was replaced, and the default for sorting by value was updated.

    5.0.0release notes

  • Deprecated TypeScript config root directory support was removed.

    5.0.0release notes

  • Deprecated selectors are no longer supported.

    5.0.0release notes

  • The deprecated ignore pattern option was removed.

    5.0.0release notes

  • The deprecated destructure-only option was removed.

    5.0.0release notes

  • The deprecated ignore pattern option was removed.

    5.0.0release notes

  • Object type options now use a conditional configuration pattern.

    5.0.0release notes

  • The deprecated ignore pattern was removed.

    5.0.0release notes

New APIs and options 38

  • Adds the sort-constructor-parameters rule.

    5.13.0release notes

  • Supports custom module block nodes.

    5.11.0release notes

  • Adds an option to ignore callable types when sorting intersection types.

    5.10.0release notes

  • Class option types are now exported for use by plugin consumers.

    5.9.0release notes

  • Spacing between overload signatures can now be configured.

    5.9.0release notes

  • Adds the sort-array rule.

    5.8.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Supports conditional configuration by AST selector and name pattern.

    5.7.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Supports conditional configuration by AST selector and name pattern.

    5.7.0release notes

  • Supports conditional configuration by AST selector and name pattern.

    5.7.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Supports conditional configuration by AST selector and name pattern.

    5.7.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Supports conditional configuration by AST selector.

    5.7.0release notes

  • Adds support for computed-key partitioning.

    5.7.0release notes

  • Supports conditional configuration by AST selector and name pattern.

    5.7.0release notes

  • Supports conditional configuration by AST selector and name pattern.

    5.7.0release notes

  • The rule now allows sorting by name and value.

    5.4.0release notes

  • Fallback sort subgroup order is supported, affecting how items are ordered when they fall back to a subgroup.

    5.3.0release notes

  • Fallback sort can now be overridden in groups with overrides.

    5.2.0release notes

  • The rule can now sort imports by specifiers.

    5.2.0release notes

  • The rule can now sort modules by order of use.

    5.2.0release notes

  • Configuration can now be supplied using annotations.

    5.0.0release notes

  • Groups can now override types.

    5.0.0release notes

  • Groups can now override order.

    5.0.0release notes

  • New lines can now be configured inside group overrides.

    5.0.0release notes

  • The rule now supports array-based custom groups.

    5.0.0release notes

  • A rule for sorting export attributes was added.

    5.0.0release notes

  • The rule adds wildcard, named, and line-related modifiers.

    5.0.0release notes

  • The rule now supports array-based custom groups.

    5.0.0release notes

  • A rule for sorting import attributes was added.

    5.0.0release notes

  • The rule adds multiline and singleline modifiers.

    5.0.0release notes

  • A numeric keys detection option was added.

    5.0.0release notes

  • Pattern matching now has a scope option.

    5.0.0release notes

  • A numeric keys detection option was added.

    5.0.0release notes

Performance 4

Behavior and default changes 11

  • The rule can sort arrow functions.

    5.14.0release notes

  • eslint is now an optional peer dependency, so it is no longer required as a peer dependency when installing the plugin.

    5.12.1release notes

  • Improves dependency detection for the sort-classes rule.

    5.5.0release notes

  • The dependency detection algorithm is improved, which may change how dependencies are detected.

    5.4.0release notes

  • Adds new lines between settings.

    5.1.0release notes

  • Adds new lines inside at-rule options and at the settings level.

    5.1.0release notes

  • Type-import-first fallback sorting is now supported.

    5.0.0release notes

  • Declaration patterns can now be matched within a scope.

    5.0.0release notes

  • Declaration comments can now be matched within a scope.

    5.0.0release notes

  • Declaration patterns can now be matched within a scope.

    5.0.0release notes

  • Pattern matching is now available for variable declarations.

    5.0.0release notes

Tooling 2

Fixes and other changes 45

  • The rule detects dependencies in decorators.

    5.14.0release notes

  • Restores the alphabet reverse method.

    5.13.0release notes

  • Natural sorting supports lists of locales.

    5.13.0release notes

  • Allows partitioning imports by newlines.

    5.13.0release notes

  • Registers the exported plugin object in configs.

    5.13.0release notes

  • Validates setting values.

    5.13.0release notes

  • Treats prefix-only modules without a prefix as external.

    5.13.0release notes

  • Stops the tsconfig search at the drive root on Windows.

    5.13.0release notes

  • Honors eslint-disable directives that include a description.

    5.12.0release notes

  • Adds a safety semicolon when the next element continues an expression.

    5.11.1release notes

  • Detects decorator metadata dependencies without tsconfig.

    5.11.1release notes

  • Detects decorator metadata dependencies.

    5.11.0release notes

  • Fixes cases where complex comments are not auto-fixed correctly.

    5.10.1release notes

  • Takes extended tsconfigs into account.

    5.10.1release notes

  • Respects ignored callback dependencies in nested calls.

    5.10.1release notes

  • Fixes a crash when used with TypeScript 7.

    5.10.1release notes

  • Dependency detection now handles IIFEs, auto-accessors, and computed enum access.

    5.10.0release notes

  • The rule skips condition-shaped switch statements.

    5.10.0release notes

  • Prevents the usage-sort autofix loop when sort-modules is configured with descending order.

    5.9.1release notes

  • Submodule imports are now treated as internal patterns by sort-imports.

    5.9.0release notes

  • Uncased character positions are now preserved.

    5.9.0release notes

  • Fixes an issue in sort-classes.

    5.8.0release notes

  • Adds missing partition cases to sort-modules.

    5.8.0release notes

  • Applies the first matching configuration in option order.

    5.7.0release notes

  • Makes selector match priority deterministic when options overlap.

    5.7.0release notes

  • Fixes invalid arrays being sorted.

    5.7.0release notes

  • Normalizes parenthesized union and intersection member names.

    5.6.0release notes

  • Avoids crashes on unknown class elements.

    5.6.0release notes

  • Finds declaration comments before exported variables.

    5.6.0release notes

  • Prevents the rule from reordering spread operators.

    5.5.0release notes

  • Fallback sorting is enabled for usage mode.

    5.4.0release notes

  • The rule supports overload signatures and no longer loops on overload signatures with sort-usages.

    5.4.0release notes

  • Plugin config typings are aligned with ESLint.

    5.3.1release notes

  • Uses runtime-safe node type checks.

    5.3.0release notes

  • The rule can sort decorated exported classes.

    5.3.0release notesrelease notes

  • Plugin configs now have an explicit type annotation.

    5.2.0release notes

  • Improves plugin type compatibility.

    5.1.0release notes

  • Allows settings to be overridden with default values.

    5.1.0release notes

  • Handles a missing export kind when sorting exports.

    5.1.0release notes

  • Declaration comments are now honored for nested types.

    5.0.0release notes

  • Plugin usage with legacy configurations was fixed.

    5.0.0release notes

  • Settings priority is preserved when meta default options are provided.

    5.0.0release notes

  • Detection of complex object type declarations was improved.

    5.0.0release notes

  • Declaration names are matched from variable declarations.

    5.0.0release notes

  • Destructured dependencies are now handled.

    5.0.0release notes

eslint-plugin-perfectionist 429 changes

Breaking changes 6

New APIs and options 14

Behavior and default changes 2

  • Aliased imports are now resolved through tsconfig.json.

    4.0.0release notes

  • Sorting nodes with comments was improved.

    4.0.0release notes

Fixes and other changes 7

  • An inline issue involving declare class was fixed.

    4.0.0release notes

  • Ending-comma and semicolon behavior was improved.

    4.0.0release notes

  • Types were made compatible with ESLint types.

    4.0.0release notes

  • Optional chaining imports are now supported.

    4.0.0release notes

  • Comment boundaries are now respected when partitioning by comments.

    4.0.0release notes

  • Properties prefixed with # are now detected as dependencies.

    4.0.0release notes

  • Key-name retrieval was fixed.

    4.0.0release notes

eslint-plugin-perfectionist 326 changes

Breaking changes 9

  • Case ignoring is enabled by default.

    3.0.0release notes

  • The configuration export changes; update code that imports or uses the plugin's config export.

    3.0.0release notes

  • Node.js 16 is no longer supported.

    3.0.0release notes

  • The nullable last option is removed from sort-union-types.

    3.0.0release notes

  • Options are renamed from kebab case to camel case, so existing configuration using kebab-case option names must be updated.

    3.0.0release notes

  • Recommended options become the default.

    3.0.0release notes

  • The spread last option is replaced with a group kind option.

    3.0.0release notes

  • The optionality order option is renamed to group kind.

    3.0.0release notes

  • The project moves to typescript-eslint v7.

    3.0.0release notes

New APIs and options 9

  • Environment selection and separation of bun modules are added.

    3.0.0release notes

  • A new ability to ignore JSX elements is added.

    3.0.0release notes

  • A partition by comment option is added to sort-classes.

    3.0.0release notes

  • A groups option is added to the sort-intersection-types rule.

    3.0.0release notes

  • A group kind option is added to sort-object-types.

    3.0.0release notes

  • A custom ignore option is added to make sort-objects ignore behavior customizable.

    3.0.0release notes

  • A new rule is available to sort switch cases.

    3.0.0release notes

  • A groups option is added to the sort-union-types rule.

    3.0.0release notes

  • A new rule is available to sort variable declarations.

    3.0.0release notes

Behavior and default changes 3

  • Natural sorting now respects numeric separators.

    3.0.0release notes

  • sort-imports now supports require.

    3.0.0release notes

  • Sorting objects for call expressions now uses the ignore pattern.

    3.0.0release notes

Tooling 1

Fixes and other changes 4

  • The default value for export and import kind is fixed.

    3.0.0release notes

  • Support for the old getting context ESLint API is restored.

    3.0.0release notes

  • Class members are no longer sorted when the right value depends on the left.

    3.0.0release notes

  • Disabling styled components is fixed when using the css function.

    3.0.0release notes