Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

tslint-formatter-beauty

3.0.0 • Public • Published

tslint-formatter-beauty

Beautiful TSLint formatter.

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

install

npm i tslint-formatter-beauty

Downloadsweekly downloads

19

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability