UNPKG

paco

Version:

Node package development/distribution utility kit

26 lines (18 loc) 509 B
#!/usr/bin/env node /** * paco lint */ 'use strict'; var paco = require('../api'); var description = 'Runs lint script from .pacorc or `npm run lint` if defined. If the lint config is set to false, nothing will be done.'; // Task module.exports = function (_yargs) { _yargs.command('lint', description, function (yargs) { yargs.usage('Usage: paco lint\n\n' + description); require('./options/help')(yargs); var argv = yargs.argv; if (!argv.help) { paco.lint(); } }); };