Validate JavaScript code and report possible syntax errors
The earlier you find syntax errors, the earlier you can fix them.
npm install --save-dev gulp-jsvalidate
import gulp from 'gulp';
import jsValidate from 'gulp-jsvalidate';
export default () => (
gulp.src('app.js')
.pipe(jsValidate())
);
Type: object
Type: boolean
Default: true
Parse the JavaScript code as a ES2015 module instead of a script.