Socket
Book a DemoInstallSign in
Socket

eslint-plugin-jsort

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jsort

Sort imports effortlessly

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-jsort

Sort imports effortlessly

This rule formats import declaration statements without mercy and with a lot of flexibility. JavaScript imports are frustrating and this tries to make it easier to work with them. Feel free to post any issues/suggestions you might have with the plugin on the issue tracker.

Installation

  • Install ESLint:
$ npm i eslint --save-dev
  • Install the plugin eslint-plugin-jsort:
$ npm install eslint-plugin-jsort --save-dev

Usage

  • Add jsort to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
  "plugins": ["jsort"]
}
  • Then configure the rules you want to use under the rules section.
{
  "rules": {
    "jsort/jsort-imports": [
      "error",
      {
        /* Additional Configuration */
      }
    ]
  }
}

Available Rules

Other Resources

Keywords

eslint

FAQs

Package last updated on 12 Apr 2021

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