Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
102
decreased by-33.33%
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:

  1. Node standard modules
  2. Framework modules
  3. Third-party modules
  4. First-party modules
  5. 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

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

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