Skip to content

v0.9.1

Choose a tag to compare

@amery amery released this 07 Apr 14:02
· 29 commits to main since this release
4891edf

@poupe/eslint-config v0.9.1

Migrate eslint-plugin-perfectionist from v4 to v5 and enable
nine additional recommended sorting rules. Consumers will see
a one-time eslint --fix churn as imports re-sort under the
new type- prefix selectors and as blank lines between export
groups are now preserved.

Changed:

  • deps: eslint-plugin-perfectionist ^4.15.1 → ^5.8.0
  • perfectionist: Migrated sort-imports to v5 format —
    groups from -type suffix to type- prefix selectors,
    'object''ts-equals-import', added
    newlinesInside: 'newlinesBetween' (required by v5 when
    partitionByNewLine is enabled).
  • perfectionist: Removed unused react/vue customGroups
    from sort-imports — they were defined but never referenced
    in the groups array, so they had no effect.
  • perfectionist: Removed groupKind: 'mixed' from
    sort-named-imports and sort-named-exports (option removed
    in v5, mixed is the default behaviour).
  • perfectionist: Enabled nine additional recommended rules
    with type: 'natural' sorting: sort-intersection-types
    (mirrors sort-union-types), sort-import-attributes,
    sort-export-attributes, sort-classes, sort-enums,
    sort-heritage-clauses, sort-interfaces,
    sort-object-types, sort-variable-declarations. Blank-line
    semantic grouping (partitionByNewLine) enabled on classes,
    enums, interfaces, object types, and variable declarations.

Fixed:

  • perfectionist: Enabled partitionByNewLine for
    sort-exports and sort-named-exports — was only set on the
    import rules, causing blank lines between export groups to be
    collapsed by eslint --fix.

CI:

  • build workflow: Added pull-requests: write permission so
    pkg-pr-new can post install comments on PRs.