Interactive ESLint workflow that lives in your terminal
npm i eslint-dashboard -g
# Run command
eslint-dashboard
const dashboard = require( 'eslint-dashboard' )
// files: the same as first parameter of eslint.lintFiles
// lint and fix: the same as `lintFiles` and `fixFiles` in `lib/lint.js`
dashboard( files, {
lint() {
// implement your own lint logic
// return eslint lint results
},
fix() {
// implement your own fix logic
// return eslint fix results
}
} )
MIT