@putout/operator-ignore
🐊Putout operator adds ability to ignore referenced variables that was not defined
Last updated 9 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/operator-ignore 
SYNC missed versions from official npm registry.

@putout/operator-ignore NPM version

A .gitignore file specifies intentionally untracked files that Git should ignore.

(c) git-scm.com

🐊Putout operator simplifies creating ignore-plugins.

Install

npm i putout @putout/operator-ignore

API

ignore

import {operator} from 'putout';

const {ignore} = operator;

export const {
    report,
    fix,
    traverse,
} = ignore({
    name: '.npmignore',
    list: [
        '.*',
        'yarn-error.log',
        'coverage',
        '*.config.*',
    ],
});

type

import {operator} from 'putout';

const {__json, ignore} = operator;

export const {
    report,
    fix,
    traverse,
} = ignore({
    type: __json,
    name: '.nycrc.json',
    field: 'exclude',
    list: ['*.config.*'],
});

If file and passed in list mask overlaps, only mask saved, and list name removed:

-yarn-error.log
+*.log

Configuration

Plugin supports options, so you can pass it in .putout.json:

{
    "rules": {
        "coverage/add-exclude": ["on", {
            "list": ["**/*.ts"]
        }]
    }
}

License

MIT

Current Tags

  • 6.3.0                                ...           latest (5 months ago)

20 Versions

  • 6.3.0                                ...           5 months ago
  • 6.2.1                                ...           5 months ago
  • 6.2.0                                ...           5 months ago
  • 6.1.0                                ...           9 months ago
  • 6.0.7                                ...           9 months ago
  • 6.0.6                                ...           9 months ago
  • 6.0.5                                ...           9 months ago
  • 6.0.4                                ...           9 months ago
  • 6.0.3                                ...           9 months ago
  • 6.0.2                                ...           9 months ago
  • 6.0.1                                ...           9 months ago
  • 6.0.0                                ...           9 months ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 35
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 0
Last Month 20
Dependencies (3)
Dev Dependencies (11)
Dependents (1)

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