generator-tslint
v0.1.1
Published
Yeoman generator to get tslint up and running in your project with your favorite preset (and with plugins if you want)
Downloads
17
Maintainers
Readme
generator-tslint
Yeoman generator to get tslint up and running in your project with your favorite preset
Install
npm install --global yo generator-tslint
Usage
# 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
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.
Install
npm install --save generator-tslint
Compose
this.composeWith('tslint', { options: {
'skip-install': this.options['skip-install'],
config: {
rulesDirectory: [
'tslint-microsoft-contrib'
, 'tslint-eslint-rules'
, 'codelyzer'
]
}}}, {
local: require.resolve('generator-tslint')
});
License
MIT © Aleksandr Filatov alfilatov.com