3.0.0 • Published 6 years ago

tslint-formatter-beauty v3.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

tslint-formatter-beauty

Beautiful TSLint formatter.

npm.io

build npm

Installation

Using Yarn:

yarn add --dev tslint-formatter-beauty

Using npm:

npm install --save-dev tslint-formatter-beauty

Usage

TSLint CLI:

tslint --formatters-dir ./node_modules/tslint-formatter-beauty -t beauty -p .

gulp-tslint

const gulp = require('gulp')
const tslint = require('gulp-tslint')

gulp.task('lint', () =>
  gulp.src('file.ts')
    .pipe(tslint({
      formattersDirectory: 'node_modules/tslint-formatter-beauty',
      formatter: 'beauty'
    }))
)

tslint-loader

module.exports = {
  // ... other options
  module: {
    rules: [
      // ... other options
      {
        test: /\.ts$/,
        exclude: /node_modules/,
        loader: 'tslint-loader',
        options: {
          formattersDirectory: 'node_modules/tslint-formatter-beauty',
          formatter: 'beauty'
        }
      }
    ]
  }
}

Related Projects

License

MIT License

Copyright (c) 2018-present Pig Fang