Yeoman generator to get tslint up and running in your project with your favorite preset
npm install --global yo generator-tslint
# nope, it will do nothing, just install tslint into your project
yo tslint
# install tslint with your favorite preset
yo tslint tslint-microsoft-contrib
# you can select some presets for tslint
yo tslint tslint-microsoft-contrib,tslint-eslint-rules
For now supporting only (in accordance with http://palantir.github.io/tslint/usage/custom-rules/)
Composability is a way to combine smaller parts to make one large thing. Sort of like Voltron®
— Yeoman docs
Just plug in tslint into your generator and let it setup your tslint.json and install required devDependencies for you. Everybody wins.
npm install --save generator-tslint
this.composeWith('tslint', { options: {
'skip-install': this.options['skip-install'],
config: {
rulesDirectory: [
'tslint-microsoft-contrib'
, 'tslint-eslint-rules'
, 'codelyzer'
]
}}}, {
local: require.resolve('generator-tslint')
});
MIT © Aleksandr Filatov alfilatov.com