-
Notifications
You must be signed in to change notification settings - Fork 887
Should TSLint run when there are syntactic errors in the file? #3808
Comments
You have two errors at different places. Try validating this : @NgModule({
exports: [ RouterModule ],
imports: [ RouterModule.forRoot(
routes,
{ enableTracing: true, }
)],
}) I switched And I added the |
Yes, I have specified the missing one But it's disturbing to have this message with just a missing |
This is odd, but when it come to parsing, the missing closing parenthesis may have seen something completely different to what we may think. It might have back-tracked to something that is not the I don't think the linter can do a lot here, or maybe shut the linter errors if there is a compilation error. |
The root issue here is, as suggested, that TSLint should have a better strategy for providing failures when there's a syntax problem. Modifying the title to make that more clear; I must have rediscovered this issue a half dozen times by now. 😆 |
Per #3946: what about --fix? |
Hello, I think TSLint can stop on misconfiguration. Developers can then narrow their search field to tslint configuration on errors. |
Hi, I just read through the discussion here and it's little unclear for me what decision was made. Is there a way ESLint reports for syntax errors? I imagine that syntax errors will prevent the correct analysis of a file so it makes sense to report those problems. The way I saw Gosec (Golang static code analysis tool) handles the syntax errors is by giving Golang syntax errors at the beginning of the output. Is there a similiar feature in TSLint? |
💀 It's time! 💀TSLint is being deprecated and no longer accepting pull requests for major new changes or features. See #4534. 😱 If you'd like to see this change implemented, you have two choices:
👋 It was a pleasure open sourcing with you! If you believe this message was posted here in error, please comment so we can re-open the issue! |
🤖 Beep boop! 👉 TSLint is deprecated 👈 (#4534) and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Because a picture is better than a long speech :
Expected behavior
Give good choice ;)
ps: yes, he misses one ) in snippet
The text was updated successfully, but these errors were encountered: