An open API service indexing awesome lists of open source software.

https://github.com/sindresorhus/gulp-jsvalidate

Validate JavaScript code and report possible syntax errors
https://github.com/sindresorhus/gulp-jsvalidate

gulp-plugin javascript nodejs validate-js

Last synced: 10 months ago
JSON representation

Validate JavaScript code and report possible syntax errors

Awesome Lists containing this project

README

          

# gulp-jsvalidate

> Validate JavaScript code and report possible syntax errors

![](screenshot.png)

The earlier you find syntax errors, the earlier you can fix them.

## Install

```sh
npm install --save-dev gulp-jsvalidate
```

## Usage

```js
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](https://exploringjs.com/impatient-js/ch_modules.html) instead of a script.