You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

generator-tslint

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-tslint

Yeoman generator to get tslint up and running in your project with your favorite preset (and with plugins if you want)

0.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

yeoman-generator

FAQs

Package last updated on 16 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts