Skip to content

Releases: macklinu/danger-plugin-tslint

v2.0.0

26 May 18:09
Compare
Choose a tag to compare

2.0.0 (2017-05-26)

Features

Breaking Changes

  • there is a new configuration API, so this will result in a major version bump.
    (0fec7e27)

v1.0.1

24 May 04:00
1808b1a
Compare
Choose a tag to compare

1.0.1 (2017-05-24)

Bug Fixes

😌

v1.0.0

24 May 03:30
Compare
Choose a tag to compare

1.0.0 (2017-05-24)

Features

  • tslint: create tslint plugin (e90a5488)

danger-plugin-tslint runs TSLint on your codebase with your defined tsconfig.json and tslint.json files. If there are any failures, this plugin will call fail() with the formatted output in a message. Otherwise, it will call message() saying that TSLint passed. 🆒

Usage example:

// dangerfile.js
import tslint from 'danger-plugin-tslint'

tslint()

If you want to supply custom options, you can do that too:

// dangerfile.js
import path from 'path'
import tslint from 'danger-plugin-tslint'

tslint({
  tslintPath: path.resolve(__dirname, 'path/to/tslint.json'),
  tsconfigPath: path.resolve(__dirname, 'path/to/tsconfig.json'),
  formatter: 'stylish',
})