A TSLint config for JavaScript Standard Style with a plus of useful rules.
MIT License
A TSLint config for JavaScript Standard Style with a plus of useful rules.
⚠️ TSLint is deprecated but not this repository for "now". More details at https://github.com/palantir/tslint.
TSLint Config Standard Plus contains a JavaScript Standard Style rules as well as a set of additional rules that will help you with syntactic & semantic checks of your TypeScript code in development.
Optional tslint config (tslint.legacy.json) that extends from default tslint.json but with additional rules overwritten:
This repo exists thanks to these awesome TSLint config projects listed below 🎉
🚀 See all rules in tslint.json file and examples at Printd or Hyperapp Starter source code.
Many of the rules set include formatting feature built-in. This repository contains a VS Code User Workspace pre-configured that you can use in order to gain all rule sets benefits just saving your files (ctrl/cmd + S
).
For more details, take a look at .vscode directory.
yarn add tslint-config-standard-plus --dev
npm install tslint-config-standard-plus --save-dev
Setup your tslint.json
in your project as follow:
{
"extends": "tslint-config-standard-plus"
}
{
"extends": "tslint-config-standard-plus/tslint.legacy"
}
To overwrite some specific rules add "rules"
section after "extends"
in your tslint.json
file.
{
"extends": "tslint-config-standard-plus",
"rules": {
"no-any": false
}
}
"strict": true
to your tsconfig.json
to enables all strict type checking options."noUnusedLocals": true
& "noUnusedParameters": true
to your tsconfig
- tslint no-unused-variable rule doesn't report warnings any more?
Feel free to send some Pull request or issue.
MIT license
© 2018-present Jose Quintana