🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

import-sort-style-python

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-sort-style-python

Group and sort imports by module, à la Python isort

1.0.2
latest
Source
npm
Version published
Weekly downloads
83
-67.19%
Maintainers
1
Weekly downloads
 
Created
Source

import-sort-style-python

npm version npm downloads

A style for import-sort that groups and sorts imports by module, inspired by isort’s grouping style:

  • Node standard modules
  • Framework modules
  • Third-party modules
  • First-party modules
  • Explicitly local modules

Framework and First-party require setting some options in your config:

"importSort": {
  ".js": {
    "parser": "babylon",
    "style": "python",
    "options": {
      "knownFramework": [
        "@ember",
        "@glimmer"
      ],
      "knownFirstparty": [
        "my-project"
      ]
    }
  },
}

Keywords

import-sort-style

FAQs

Package last updated on 23 Jan 2020

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