generator-tslint

0.1.1 • Public • Published

generator-tslint

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

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

Package Sidebar

Install

npm i generator-tslint

Weekly Downloads

7

Version

0.1.1

License

MIT

Last publish

Collaborators

  • greybax