Rule set based on Airbnb JavaScript style guide with some extra immutability rules from tslint-immutable.
$ npm install -D tslint-config-fishbrain
tslint.json
{
"extends": ["tslint-config-fishbrain"]
}
In addition to setting target, module, moduleResolution etc, these strictness settings are recommended.
{
"compilerOptions": {
"strict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true
}
}
Add this to package.json
to get correct config for prettier
"prettier": {
"singleQuote": true,
"trailingComma": "all"
}