/import-sort-style-simon-sort

An import-sort style that started as a birthday present for a colleague.

Primary LanguageJavaScript

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"
	}
}
  1. Enjoy