Socket
Socket
Sign inDemoInstall

@putout/plugin-sort-imports-by-specifiers

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @putout/plugin-sort-imports-by-specifiers

🐊Putout plugin adds ability to find and sort imports by specifiers


Version published
Weekly downloads
1.4K
increased by43.58%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@putout/plugin-sort-imports-by-specifiers NPM version

The static import declaration is used to import read-only live bindings which are exported by another module. The imported bindings are called live bindings because they are updated by the module that exported the binding, but cannot be re-assigned by the importing module.

(c) MDN

🐊Putout plugin adds ability to find and sort import statements by specifiers. Checkout in 🐊Putout Editor.

Install

npm i @putout/plugin-sort-imports-by-specifiers

Rule

{
    "rules": {
        "sort-imports-by-specifiers": "on"
    }
}

❌ Example of incorrect code

import {
    a,
    b,
    c,
    d,
} from 'd';
import a1 from 'a1';

✅ Example of correct code

import a1 from 'a1';
import {
    a,
    b,
    c,
    d,
} from 'd';

License

MIT

Keywords

FAQs

Last updated on 06 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc