/tslint-config-fishbrain

TSLint config for Fishbrain TypeScript projects

Apache License 2.0Apache-2.0

TSLint config for Fishbrain TypeScript projects

npm version Build Status

Rule set based on Airbnb JavaScript style guide with some extra immutability rules from tslint-immutable.

Usage

$ npm install -D tslint-config-fishbrain

tslint.json

{
  "extends": ["tslint-config-fishbrain"]
}

Recommended tsconfig.json settings

In addition to setting target, module, moduleResolution etc, these strictness settings are recommended.

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

Recommended package.json prettier settings

Add this to package.json to get correct config for prettier

  "prettier": {
    "singleQuote": true,
    "trailingComma": "all"
  }