@putout/plugin-sort-imports-by-specifiers
🐊Putout plugin adds ability to find and sort imports by specifiers
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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. Merged with @putout/plugin-esm.

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.3                                ...           latest (a year ago)

5 Versions

  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |