Skip to main content

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

RuleDescriptionFixable
collation/group-exportsConsolidates multiple export statements🔧
collation/no-default-exportEnforces exports to be named🔧
collation/no-inline-exportEnforces exports to appear at the end of the file🔧
collation/prefer-importEnforces imports from a preferred module, i.e. for wrapped library functionality or ESM-friendly packages.🔧
collation/sort-dependency-listSorts React dependency lists🔧
collation/sort-exportsSorts specifiers in an export statement🔧