tslint-loader
Tslint loader for Webpack
Usage
Apply the tslint loader as pre/postLoader in your webpack configuration:
module.exports = {
module: {
preLoaders: [
{
test: /\.ts$/,
loader: 'tslint-loader'
}
]
},
tslint: {
configuration: {
rules: {
quotemark: [true, 'double']
}
},
emitErrors: false,
failOnHint: true,
formatter: 'yourformatter',
formattersDirectory: 'node_modules/tslint-loader/formatters/',
fileOutput: {
dir: './foo/',
ext: 'xml',
clean: true,
header: '<?xml version="1.0" encoding="utf-8"?>\n<checkstyle version="5.7">',
footer: '</checkstyle>'
}
}
}
Installation
npm install tslint-loader --save-dev
License
MIT (http://www.opensource.org/licenses/mit-license.php)