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

    3

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    9.64 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar