Socket
Socket
Sign inDemoInstall

eslint-plugin-import-order-autofix

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-import-order-autofix

eslint-plugin-import/order autofixing.


Version published
Maintainers
1
Created
Source

eslint-plugin-import-order-autofix

This plugin is an extension of the lovely and more stable eslint-plugin-import to enable --fix for import/order.

With this change import order set by "groups" and "newlines-between" will when run with --fix attempt to reorder and properly newline your imports.

Setup

npm install --save eslint-plugin-import-order-autofix

Configuration

In your .eslintrc add "import-order-autofix" to your plugins, and add "import-order-autofix/order" to your rules. For additional information see the docs order

Examples

const fs = require('fs-extra');
const get = require('lodash/get');
const path = require('path');
const uniq = require('lodash/uniq');
const generateDemo = require('./generateDemo');

const {
  extensionize,
  stripBasename
} = require('./utils');

will be turned into

const path = require('path');

const fs = require('fs-extra');
const get = require('lodash/get');
const uniq = require('lodash/uniq');

const generateDemo = require('./generateDemo');
const {
  extensionize,
  stripBasename
} = require('./utils');

Keywords

FAQs

Package last updated on 13 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc