Tiny eslint wrapper to allow executing javascript linting in parallel.
npm install eslint-parallel
node_modules/.bin/eslint-parallel src/js/**
See ESLint Docs for all the options
import Linter from 'eslint-parallel';
new Linter({
cache: true,
cwd: process.cwd()
}).execute(['src/js/**']).then(
(result) => {
const failed = result.errorCount || result.warningCount;
if (failed) {
// failed
} else {
// passed
}
},
(err) => {
console.log(err);
process.exit(1);
}
);