-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
fix(eslint-plugin-template): [no-call-expression] False negative with the new control flow syntax #1677
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
Done. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit b60fd4d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targetsSent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Res42!
Closes #1672
The basic solution was to add more KEYS special cases for
preprocessNode
.prefetchTriggers
andtriggers
are simple object dictionaries in@defer
s AST so I also addedObject: ['when']
to the KEYS.I'll include some ASTs below:
@if
Generated AST:
@switch
Generated AST:
@for
Generated AST:
@defer
As I see it work has already been done with
DeferredBlock
so just some modifications are needed.Basic usage:
The rule should not error on
viewport(ref)
and other configs that seems like function calls but are built-ins.Generated AST:
But it should error on
when
andprefetch when
.Generated AST: