UNPKG

sass-lint-vue

Version:

Command line tool to lint Sass styles in Vue single file components.

24 lines (18 loc) 515 B
#!/usr/bin/env node const program = require('commander') const packageDetails = require('./../package.json') const Linter = require('./linter.js') const run = (args) => { program .version(packageDetails.version) .description(packageDetails.description) .usage('[options] <paths|file path ...>') .arguments('<paths|file path>') .parse(process.argv) if (!program.args.length) { program.help() } const linter = new Linter() linter.checkPaths(program.args) } module.exports = run