@nomemo/nice-import-sorting
v0.1.4
Published
A Prettier plugin that sorts import statements within JS, JSX, TS, and TSX files using the import names instead of the module/path names.
Downloads
18
Readme
nice-import-sorting
A Prettier plugin that sorts import statements within JS, JSX, TS, and TSX files using the import names instead of the module/path names.
From version 0.1.0
, import statements are automatically sorted and grouped, and plugin options available prior to version 0.1.0
are now ignored.
The plugin is now opinionated when it comes to the sorting and grouping of import statements.
Installation
NPM
npm install @nomemo/nice-import-sorting@latest
Yarn
yarn add @nomemo/nice-import-sorting@latest
Setup
You will need to add the plugin to your Prettier config file.
{
"plugins": "@nomemo/nice-import-sorting"
}
Plugin Options
Plugin options are no longer available; since version 0.1.0