JSPM

  • Created
  • Published
  • Downloads 28565
  • Score
    100M100P100Q147042F
  • License MIT

TypeScript linter Gulp plugin

Package Exports

  • gulp-tslint

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-tslint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-tslint

Note: This is work in progress.

TypeScript linter plugin for Gulp.

First install gulp-tslint

npm install --save-dev gulp-tslint

Usage:

var tslint = require('../index');

gulp.task('tslint', function(){
      gulp.src('source.ts')
        .pipe(tslint());
});

tslint.json can be supplied as a parameter

gulp.task('rules', function(){
      gulp.src('invalid.ts')
        .pipe(tslint({
              "rules": {
                "class-name": true
                // ...
              }
        }));
});