@putout/operator-sort-ignore
v2.3.0
Published
šPutout operator adds ability to sort ignore
Maintainers
Readme
@putout/operator-sort-ignore 
šPutout operator simplify ability to create plugins that sorts ignore.
Install
npm i putout @putout/operator-sort-ignoreRule
ā 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
coverageAPI
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
