eslint-watch
Version:
Run eslint with watch mode
23 lines (16 loc) • 429 B
JavaScript
var options = require('./options'),
cli = require('./eslint-cli'),
watcher = require('./watcher'),
argParser = require('./arg-parser');
function command() {
var currentOptions;
var eslArgs;
currentOptions = options.parse(process.argv);
eslArgs = argParser.parse(process.argv, currentOptions);
cli.execute(eslArgs);
if (currentOptions.watch) {
watcher(currentOptions._);
}
}
command();
;