ionic-gulp-tslint
Gulp task for Ionic projects to lint TypeScript code
Last updated 4 years ago by brandyscarney .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ionic-gulp-tslint 
SYNC missed versions from official npm registry.

TSLint Task

Lint your source files with TSLint.

API

tslint([options])

Available options:

src

(String|Array) Glob or array of globs (What's a glob?) matching TypeScript files. Default: 'app/**/*.ts'.

tslintOptions

(Object) All tslint options. Default:

{
    configuration: 'tslint.json',
    rulesDirectory: null,
    tslint: null
}
reporter

(String) A string with the name of the reporter for outputting errors. Default: "verbose". Options: "json", "prose", "verbose", "full", "msbuild". See the gulp-tslint docs for descriptions.

reporterOptions

(Object) All reporter options. Default:

{
    emitError: true,
    reportLimit: 0,
    summarizeFailureOutput: false
}

Example

var tslint = require('ionic-gulp-tslint');

// default options
gulp.task('lint', tslint);

// override options
gulp.task('lint', function () {
  return tslint({
    src: 'app/**/*.ts',
    tslintOptions: {
      configuration: 'source/tslint.json'
    },
    reporter: "prose",
    reportOptions: {
      emitError: true
    }
  });
});

Current Tags

  • 1.1.0                                ...           latest (4 years ago)

2 Versions

  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |