-
Notifications
You must be signed in to change notification settings - Fork 12k
[lint] tslint.json could extend tslint:recommended #6179
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
Comments
I think this would be a nice addition, because it means less rules for us to keep up to date. |
@filipesilva Are you working on this? If you aren't I'd like to pick this up. |
@laumair I already have a PR nearly ready :) |
@cexbrayat Ah! 👍 |
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
no need to duplicate rules new rules can be applied without updating, when new tslint is used Fixes: angular#6179
Extremely upvote for this. I was very surprised that this's not turned on by default. Have to clean up some shitty code because of it now. |
I see that the previous PR didn't make it to master. Does anyone want to give it a try? If there's still interest around this, we'll be happy to merge the PR. Just make sure that you preserve the same |
@mgechev I can give it a go. Do you mean that at first we need the exact same result as the current config, even if that means taking an opposite choice than the recommended set? For example, we currently don't enforce |
@cexbrayat yes, this would be ideal. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.1.0-beta.0
node: 7.4.0
Desired functionality.
TSLint has introduced
tslint:recommended
(andtslint:latest
) for a while, allowing a config to extend the recommended default, and just override a few rules.It means we could simplify the configuration, and just keep a few overrides that are common in the Angular community.
Mention any other details that might be useful.
See the recommended set of rules: https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts
I gave it a naive first try, this is how the tslint.json would look like (to keep the configuration really close to the one we have right now):
If you think it is interesting, I can work on a PR.
The text was updated successfully, but these errors were encountered: