@putout/operator-sort-properties
🐊Putout operator adds ability to sort properties
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/operator-sort-properties 
SYNC missed versions from official npm registry.

@putout/operator-sort-properties NPM version

🐊Putout operator simplify ability to create plugins that sorts properties.

Install

npm i putout @putout/operator-sort-properties

Rule

❌ Example of incorrect code

{
    "rules": {
        "remove-useless": "on",
        "add-missing": "on"
    }
}

✅ Example of correct code

{
    "rules": {
        "add-missing": "on",
        "remove-useless": "on"
    }
}

API

import {operator} from 'putout';

const {sortProperties} = operator;

export const {
    report,
    fix,
    traverse,
} = sortProperties('rules');

License

MIT

Current Tags

  • 1.0.1                                ...           latest (2 months ago)

2 Versions

  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

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