JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1825
  • Score
    100M100P100Q116375F
  • License MIT

Validate JavaScript code and report possible syntax errors

Package Exports

  • gulp-jsvalidate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-jsvalidate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-jsvalidate Build Status

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

const gulp = require('gulp');
const jsValidate = require('gulp-jsvalidate');

exports.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.