2.2.0 • Published 4 years ago

tslint-html-report v2.2.0

Weekly downloads
2,595
License
ISC
Repository
github
Last release
4 years ago

tslint-html-report

A small module which runs TSLint on the given source glob and generates a simple HTML report. Works with typescript version 2.0 and greater.

Installation

Install tslint-html-report locally and add it to the dev dependancies

npm install tslint-html-report --save-dev

Usage

Simple require the module in your script/gulp task and invoke it with the desired config

const tslintHtmlReport = require('tslint-html-report');

tslintHtmlReport({/*config*/}, callback);

and you're done!!

Config

The tslint-html-report takes the following config object and the default values are as below

config: {
  tslint: 'node_modules/tslint-html-report/tslint.json', // path to tslint.json
  srcFiles: 'src/**/*.ts', // files to lint
  outDir: 'reports/tslint-html-report', // output folder to write the report to
  html: 'tslint-report.html', // name of the html report generated
  exclude: ['src/**/*.ts'], // Files/patterns to exclude
  breakOnError: false, // Should it throw an error in tslint errors are found
  typeCheck: true, // enable type checking. requires tsconfig.json
  tsconfig: 'tsconfig.json' // path to tsconfig.json
}

Sample Report

This is what the report looks like

2.2.0

4 years ago

2.1.0

4 years ago

2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago