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

@putout/operator-sort-ignore NPM version

????Putout operator simplify ability to create plugins that sorts ignore.

Install

npm i putout @putout/operator-sort-ignore

Rule

❌ Example of incorrect code

node_modules
*.swp
yarn-error.log
yarn.lock
.idea
.DS_Store
deno.lock

coverage
.filesystem.json

✅ Example of correct code

.idea
.filesystem.json
.DS_Store

*.swp

yarn-error.log
yarn.lock
deno.lock

node_modules
coverage

API

sortIgnore

import {operator} from 'putout';

const {sortIgnore} = operator;

export const {
    report,
    fix,
    traverse,
} = sortIgnore({
    name: '.gitignore',
});

type

import {operator} from 'putout';

const {__json, sortIgnore} = operator;

export const {
    report,
    fix,
    traverse,
} = sortIgnore({
    type: __json,
    name: '.nycrc.json',
    field: 'exclude',
});

License

MIT

Current Tags

  • 2.3.0                                ...           latest (2 months ago)

9 Versions

  • 2.3.0                                ...           2 months ago
  • 2.2.0                                ...           2 months ago
  • 2.1.0                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.3                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |