-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rules for Linting TypeScript #15
Comments
@riteshe63 For now Lets go with this (https://github.com/Microsoft/tslint-microsoft-contrib/blob/master/tslint.json) Looks the most comprehensive and is Microsoft supported! |
#27 |
We need the final configuration file like so: {
"rulesDirectory": "node_modules/tslint-microsoft-contrib",
"extends": "tslint-microsoft-contrib",
"rules": {
"no-for-in-array": false,
"restrict-plus-operands": false
}
} Please note the following points:
|
There are some angular rules here: https://github.com/mgechev/codelyzer I have no idea if they are high quality or not. |
Great @HamletDRC Will check it out 👍 Do checkout the rest of this repo (although its highly work in progress) and any feedback would be appreciated :) |
We still need to follow up on AtomLinter/linter-tslint#109 |
I've done some research on what
.tslintrc
should look like. Here are my notes:eslint
currently does not work with TypeScript (https://github.com/eslint/typescript-eslint-parser). Its in the works but the autor @nzakas recommends to not use it in production.tslint
like AirBNB.tslint
:In my opinion the long term view is to wait for ESLint to be compatible with TSLint so that all existing
.eslintrc
files are compatible with TypeScript on Day Zero. For this, I think whoever is reading this issue now or later should help @nzakas with https://github.com/eslint/typescript-eslint-parserFor now, we should use TSLint and find a ruleset which adheres to AirBNB for ES.
The text was updated successfully, but these errors were encountered: