v0.9.1
@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-importsto v5 format —
groups from-typesuffix totype-prefix selectors,
'object'→'ts-equals-import', added
newlinesInside: 'newlinesBetween'(required by v5 when
partitionByNewLineis enabled). - perfectionist: Removed unused
react/vuecustomGroups
fromsort-imports— they were defined but never referenced
in thegroupsarray, so they had no effect. - perfectionist: Removed
groupKind: 'mixed'from
sort-named-importsandsort-named-exports(option removed
in v5, mixed is the default behaviour). - perfectionist: Enabled nine additional recommended rules
withtype: 'natural'sorting:sort-intersection-types
(mirrorssort-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
partitionByNewLinefor
sort-exportsandsort-named-exports— was only set on the
import rules, causing blank lines between export groups to be
collapsed byeslint --fix.
CI:
- build workflow: Added
pull-requests: writepermission so
pkg-pr-new can post install comments on PRs.