gulp-jsvalidate

6.0.0 • Public • Published

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.

Package Sidebar

Install

npm i gulp-jsvalidate

Weekly Downloads

2,211

Version

6.0.0

License

MIT

Unpacked Size

3.28 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus