@putout/plugin-sort-imports-by-specifiers
🐊Putout plugin adds ability to find and sort imports by specifiers
Last updated 8 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-sort-imports-by-specifiers 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 1.1.0                                ...           latest (8 months ago)

2 Versions

  • 1.1.0                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE