gulp-jsvalidate
v6.1.0
Published
Validate JavaScript code and report possible syntax errors
Downloads
6,566
Maintainers
Readme
gulp-jsvalidate
Validate JavaScript code and report possible syntax errors
The earlier you find syntax errors, the earlier you can fix them.
Install
npm install --save-dev gulp-jsvalidate
Usage
import gulp from 'gulp';
import jsValidate from 'gulp-jsvalidate';
export default () => (
gulp.src('app.js')
.pipe(jsValidate())
);
API
gulpJsValidate(options?)
options
Type: object
module
Type: boolean
Default: true
Parse the JavaScript code as a ES2015 module instead of a script.