1.2.0 • Published 13 days ago

eslint-plugin-import-sorting v1.2.0

Weekly downloads
-
License
-
Repository
github
Last release
13 days ago

eslint-plugin-import-sorting

Enforce a convention in the order of import statements, inspired by isort’s grouping style:

  1. Node standard modules
  2. Framework modules
  3. Third-party modules
  4. First-party modules
  5. Explicitly local modules

This plugin includes an additional group for “style” imports where the import source ends in .css or other style format. Imports are sorted alphabetically, except for local modules, which are sorted by the number of . segements in the path first, then alphabetically.

Usage

rules: {
	'import-sorting/order': 'error',
}

See the order rule docs for more configuration options.

1.2.0

13 days ago

1.1.0

3 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

5 months ago

0.0.0

5 months ago