Skip to content

lroskoshin/tslint-bamboo-formatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tslint-bamboo-formatter

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

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.

Flags Description
-s, --formatters-dir Additional formatters directory for custom formatters
-q, --quiet Hide 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%