6.0.0 • Published 6 months ago

gulp-jsvalidate v6.0.0

Weekly downloads
2,203
License
MIT
Repository
github
Last release
6 months ago

gulp-jsvalidate

Validate JavaScript code and report possible syntax errors

npm.io

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.