Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

format/attributes/ordered

Not in any preset. Safe fix.

What it does

Sorts attributes using the configured sort algorithm.

Configuration

[format.rules]
"attributes/ordered" = true

To skip it in some files, add a @pun-ignore-file comment.

Options

Name Type Allowed values Default Upstream name
order list Any [] order
sort enum alphabetical, custom "alphabetical" sort_algorithm

Replaces

More format/attributes rules · Edit this page

Last updated on

Was this page helpful?