codelyzer: check-pipe totally broken

Since 3.1.2 check-pipe is totally broken.

<div *ngIf="countingPoints$ | async as countingPoints; else countingPoinsAreLoading">
  {{countingPoints}}
</div>
<ng-template #countingPoinsAreLoading>loading</ng-template>

ERROR: XXX.component.html[2, 13]: The pipe operator should be surrounded by one space on each side, i.e. " | ".

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

@willgm Perharps, you should simply drop rule no-access-missing-member ?

Thanks for reporting the issue. There are two issues in this case:

  • The warning is reported for code having a valid style.
  • The warning is reported on incorrect location.

I’ll push a fix in upcoming releases.