0.0.8 • Published 4 years ago

tslint-bamboo-formatter v0.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

tslint-bamboo-formatter

npm version

tslint-bamboo-formatter is a Typescript library for creating JSON output files, which are used by Bamboo for logs.

Building

If you want to generate formatter (e.g. bambooFormatter.js), use command below (works with npm version 5.2.0 and higher):

npx tsc

Installation

Use the npm package manager to install tslint-bamboo-formatter.

npm install --save-dev tslint-bamboo-formatter

Usage

Add this script to the scripts section of your package.json.

FlagsDescription
-s, --formatters-dirAdditional formatters directory for custom formatters
-q, --quietHide non "error" severity linting errors from output
-t, --format:In our case used by additional formatters if the --formatters-diroption is set

tslint CLI example

{
  scripts: {
    ...,
    tslint: "tslint -s node_modules/tslint-bamboo-formatter/formatter/ -t bamboo"
  }
}

tslint.config

module.exports = {
...,
  tslint: {
    formattersDirectory: 'node_modules/tslint-bamboo-formatter/formatters/',
    formatter: 'bambooFormatter.ts'
  }
]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago