Rules
Check out the list of all ESLint rules that this plugin includes.
If you have any ideas what rules this plugin is missing, feel free to create an issue on GitHub.
Automatically fixable by the --fix
CLI option .
Used in all recommended configurations.
Rule | Description | ||
---|---|---|---|
sort-array-includes | Enforce sorted arrays before include method | ||
sort-classes | Enforce sorted classes | ||
sort-decorators | Enforce sorted decorators | ||
sort-enums | Enforce sorted TypeScript enums | ||
sort-exports | Enforce sorted exports | ||
sort-heritage-clauses | Enforce sorted heritage clauses | ||
sort-interfaces | Enforce sorted interface properties | ||
sort-imports | Enforce sorted imports | ||
sort-intersection-types | Enforce sorted intersection types | ||
sort-jsx-props | Enforce sorted JSX props | ||
sort-maps | Enforce sorted Map elements | ||
sort-modules | Enforce sorted modules | ||
sort-named-imports | Enforce sorted named imports | ||
sort-named-exports | Enforce sorted named exports | ||
sort-object-types | Enforce sorted object types | ||
sort-objects | Enforce sorted objects | ||
sort-sets | Enforce sorted Set elements | ||
sort-switch-case | Enforce sorted switch case statements | ||
sort-union-types | Enforce sorted union types | ||
sort-variable-declarations | Enforce sorted variable declarations |