bripkens / import-sort-style-simon-sort

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 100.0%