Rules
This plugin implements various different rules to make your code more consistent and easier to read, with the idea that all rules should be fixable.
🔧 if some problems reported by the rule are automatically fixable by the --fix
command line option
⚠️ if some problems reported by the rule are manually fixable by editor suggestions
Rule | Description | Fixable |
---|---|---|
collation/group-exports | Consolidates multiple export statements | 🔧 |
collation/no-default-export | Enforces exports to be named | 🔧 |
collation/no-inline-export | Enforces exports to appear at the end of the file | 🔧 |
collation/prefer-import | Enforces imports from a preferred module, i.e. for wrapped library functionality or ESM-friendly packages. | 🔧 |
collation/sort-dependency-list | Sorts React dependency lists | 🔧 |
collation/sort-exports | Sorts specifiers in an export statement | 🔧 |