@putout/operator-ignore
v1.2.0
Published
šPutout operator adds ability to ignore referenced variables that was not defined
Downloads
14,795
Maintainers
Readme
@putout/operator-ignore
šPutout operator simplify ability to create Ignore-plugins.
Install
npm i putout @putout/operator-ignore
API
__ignore
const {operator, ignore} = require('putout');
const {__ignore} = operator;
module.exports = ignore(__ignore, {
name: '.npmignore',
field: 'exclude',
list: [
'.*',
'yarn-error.log',
'coverage',
'*.config.*',
],
});
__json
const {operator, ignore} = require('putout');
const {__json} = operator;
module.exports = ignore(__json, {
name: '.nycrc.json',
field: 'exclude',
list: [
'*.config.*',
],
});
License
MIT