-
Notifications
You must be signed in to change notification settings - Fork 233
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
Bug: angular-whitespace issue in some *.ts files #25 #692
Comments
Note:
same results |
You can get the same version of tslint with both |
@mgechev thank you. I removed the caret, did npm install... checked the package.json of tslint. It is 5.9.0 now.. ran
|
I also just tried to fix the npm versions to:
check package.json versions inside node modules.. yes, correct versions.. ran
|
The problem is that it complains about the ts file but the error is in the html file |
@Shinigami92 you're right! examples like this we're causing it:
but the bug remains that the error should point to the correct file |
Same issue here, present on both 5.9.0 and 5.11.0 <ng-template #empty>
{{placeholder}}
</ng-template> Fails, while the code below works <ng-template #empty>
{{ placeholder }}
</ng-template> |
Yes, in my case, the message was caused by an error in the related view. I solved it by replacing {{ var}} with {{ var }}. |
I have the same issue, is there any news about this? |
@NarHakobyan just add the spaces for now… afaik it is still not solved |
This could be a regression in tslint, vscode-tslint, or codelyzer. I haven't had time to look at it. Until we resolve the problem, I'd recommend you to disable the |
Confirmed the @Xample solution using white spaces solves the issue:
<ng-template #empty>
{{ placeholder }}
</ng-template> |
Hi,
im using
(complete list)
when i run
ng lint
I get around 20 the same errors on different files about whitepace interpolation... but these files are controllers.. I think it is a bug.my components are as simple as below... but tslint thinks i should have extra }} at the end.. (as if it is a template?)
https://ibb.co/nzr5wy
Note: when i add
"angular-whitespace" false
to my rules... the error is not showing anymore, so I really think it is related to angular-tslint-rules / codelyzer ?complete tslint.json
The text was updated successfully, but these errors were encountered: