eslint-plugin-import-order
ESLint plugin to enforce the order of import/require statements.
Deprecation notice
This plugin is no longer maintained, as its sole feature has been integrated and improved upon in eslint-plugin-import, which does even more cool stuff. The corresponding rule is available under the name order
.
Install
$ npm install --save-dev eslint eslint-plugin-import-order
Usage
Configure it in package.json
.
Rules
- import-order - Enforce a convention in module import order.
Recommended configuration
This plugin exports a recommended
configuration that enforces good practices.
To enable this configuration use the extends
property in your package.json
.
See ESLint documentation for more information about extending configuration files.
Note: This configuration will also enable the correct parser options and environment.