Enable Angular template no-call-expression ESLint rule
Open
- Dominant language
- TypeScript
- Stars
- 129
- Forks
- 39
- Avg merge
- 1h 26m
- Merged PRs (30d)
- 2
Description
The following ESLint rule would be good to enable if possible:
https://github.com/angular-eslint/angular-eslint/blob/master/packages/eslint-plugin-template/src/rules/no-call-expression.ts
Call expressions in templates can cause not only performance issues, but also correctness issues like this one:
https://github.com/angular/components/issues/21682
This depends on ESLint migration (#113).
It would be a fair amount of work to enable this, because there are quite a lot of violations of this rule in the project right now, and it's unclear whether there is a viable alternative in all cases.
Contributor guide
Assessment
This issue has not been assessed yet.