tslint-formatter-beauty
v3.0.0
Published
Beautiful TSLint formatter.
Downloads
42
Maintainers
Readme
tslint-formatter-beauty
Beautiful TSLint formatter.
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