ESLint plugin providing configurable import ordering rules, forked from eslint-plugin-import. Current stable version is 2.0.1, supporting ESLint v9. It allows custom grouping (e.g., modules, absolute paths, parent/sibling), newlines between groups, and alphabetical sorting. Compared to eslint-plugin-import, it offers more flexible group definitions and is simpler for import sorting specifically. The maintainer recommends using Prettier instead for formatting. No frequent releases; v2 is a major bump for ESLint v9 support with no other breaking changes.
npm install eslint-plugin-import-helpersVerified import paths — ran on the pinned version, not inferred.
Configures the order-imports rule with groups: external modules, @shared/ internal modules, then relative imports, with newlines between groups and alphabetical sorting.
Upgrade to ESLint v9 or use version 1.x.
Consider using @ianvs/prettier-plugin-sort-imports for formatting.
Use a separate rule or plugin for type imports, or configure group order to place type imports manually.
Ensure regex patterns are surrounded by '/^.../' in the groups array.
Run 'npm install eslint-plugin-import-helpers --save-dev' and ensure node_modules contains it.
Ensure rule options have at least a 'groups' array. Example: ["warn", { groups: ["module"] }]Provide a non-empty groups array with at least one valid group (e.g., 'module').