[no-call-expression] Add support for including/excluding specific functions #1055
Labels
package: eslint-plugin-template
Angular Template rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
I am trying to avoid using
form.get(...)
in my templates and force my team to useform.controls.
in the HTML templates.And I came across this rule - which is pretty awesome.
But I realized I get a lot of false positives - because some library maintainers recommend using their functions in the template:
https://ngneat.github.io/transloco/docs/translation-in-the-template#structural-directive
And they have said that the function is optimized and created to be used in templates efficiently (via memoization etc)
So, my request is - can we enable/disable certain calls based on the name of the function ?
Maybe a
includeNames
/excludeNames
optional configuration for this rule ?Versions
@angular-eslint/eslint-plugin-template
13.0.1
@angular-eslint/template-parser
13.0.1
@typescript-eslint/parser
5.29.0
ESLint
8.18.0
node
16.13.2
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: