Answer the question
In order to leave comments, you need to log in
Gulp-eslint + watch?
Hello. How can I configure EsLint to check only the changed file, in the current configuration, when one file is changed, it checks all files and displays information about them in the console? Thank you.
import {src, dest, watch, parallel, series} from 'gulp';
import eslint from 'gulp-eslint';
export const bEsLint = () => src('src/js/**/*.js')
.pipe(eslint())
.pipe(eslint.format());
// Watch Task
export const devWatch = () => {
watch('src/js/**/*.js', bEsLint);
};
export default devWatch;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question