Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

import-sort-style-simon-sort

nilswloka496MIT1.0.0

A import-sort style implementing Simon Sort

readme

import-sort-style-simon-sort

This is a sort style for the import-sort ES6 import sorter. It should work out of the box everywhere import-sort does, but it has only be tested with the CLI and the Visual Studio Code plugin.

The actual sort style will probably not be of much use to you if you are not Simon or one of his colleagues.

Installation

  1. Add the package to your devDependencies (npm install --save-dev import-sort-style-simon-sort).
  2. Configure the sort style in package.json by adding an entry like this:
    "importSort": {
     ".js, .jsx, .es6, .es, .mjs, .ts, .tsx": {
         "style": "simon-sort"
     }
    }
  3. Enjoy