-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add setting to show linting errors as warnings #108
Add setting to show linting errors as warnings #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, that's very neat, I want this! 😄
Since Is it still a viable option, to let people show warning or errors according to their wish ? |
@divlo Yeah, I agree. This will be a bit confusing if we treat warnings in our warning system the same as style issues.
This is already how it works. Warnings related to |
Personally, I would still prefer to keep all linting errors as warnings, since that lets me see "compile" errors from TypeScript in red, and linting issues from Standard in yellow |
Ah, I misunderstood the intent of this PR. I was under the impression that this PR was about distinguishing between Am I now correct in my understanding that this PR adds an option that forces all warnings and errors from |
Right, seperating lint errors to compile errors of TypeScript is great, good point! @LinusU
Yes, it is correct! I'm okay with this option if it stays disabled by default but it is the case, so alright for me. When conflicts are solved, we will review again and we could probably merge that to |
For some reason, it seems like it doesn't work with On the I don't see the error about the semicolon for example by Could you test it with |
@jamesorlakin Yes, my bad. Actually this PR #140 broke |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix
[x] New feature
[ ] Other, please explain:
On other projects using TSLint I would always turn on the option to display linting failures as warnings, distinguishing a temporary spacing issue from a type mismatch that would cause compilation to fail.
What changes did you make? (Give an overview)
This adds a new (optional) setting to override severity of a
Diagnostic
so it can appear as a different colour in contrast to severe issues:Which issue (if any) does this pull request address?
A partial resolve of #95.
Is there anything you'd like reviewers to focus on?
This is my first time touching VS Code extensions - I may have missed something when adding a setting.