A style configuration for the import-sort Prettier plugin, enforcing Segment's convention: third-party imports first, then absolute, followed by relative, with React always on top. Version 1.1.0 is stable but no longer actively maintained; releases are infrequent. This package is part of the legacy import-sort ecosystem (deprecated in favor of @ianvs/prettier-plugin-sort-imports). It provides a single predefined style function, not a plugin itself, so developers must also install import-sort-style-eslint or similar.
npm install import-sort-style-segmentVerified import paths — ran on the pinned version, not inferred.
Configures import-sort to use Segment's style and run it on TypeScript files.
Migrate to @ianvs/prettier-plugin-sort-imports with the '@ianvs/segment' import order.
Set style to "segment" in .importsortrc.
Install import-sort as a devDependency and configure your toolchain accordingly.
Run 'npm install import-sort-style-segment --save-dev' and ensure no typos in import statements.
Change the style value to 'segment' in .importsortrc.