/tslint-config

Personal TSLint config

Primary LanguageJavaScriptMIT LicenseMIT

tslint-config

https://img.shields.io/npm/v/@jupl/tslint-config.svg?style=flat-square https://img.shields.io/travis/jupl/tslint-config.svg?label=travis&style=flat-square https://img.shields.io/david/jupl/tslint-config.svg?style=flat-square https://img.shields.io/david/peer/jupl/tslint-config.svg?style=flat-square https://img.shields.io/david/dev/jupl/tslint-config.svg?style=flat-square

About

Personal TSLint configuration.

Installation

npm install @jupl/tslint-config tslint

Usage

Add to tsconfig.json:

{
  "compilerOptions": {
    ...
    "strict": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true
  }
}

Add to tslint.json:

{
  "extends": "@jupl/tslint-config"
}

If using JSX:

{
  "extends": [
    "@jupl/tslint-config",
    "@jupl/tslint-config/jsx"
  ]
}