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
feat(eslint-plugin-template): allow alias
option in [use-track-by-function]
#1497
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8f3bbe8. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 7 targetsSent with 💌 from NxCloud. |
…unction] This commit adds an `alias` option to the `use-track-by-function` rule, allowing the specification of a list of properties that should be treated similarly to `ngForTrackBy`.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1497 +/- ##
==========================================
+ Coverage 89.23% 89.55% +0.32%
==========================================
Files 162 166 +4
Lines 3056 3113 +57
Branches 521 526 +5
==========================================
+ Hits 2727 2788 +61
+ Misses 201 195 -6
- Partials 128 130 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Why did this require changing a jest config?
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.
This is causing warnings to appear in the console, and these warnings are overlapping everything I logged with console.log
.
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.
Thanks @arturovt! Comments inline
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.
Please add a full ng-template example of using the custom directive (both a passing and failing case, like we have elsewhere in this file
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.
Updated.
You need to run |
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.
Thanks a lot @arturovt!
This commit adds an
alias
option to theuse-track-by-function
rule, allowing the specification of a list of properties that should be treated similarly tongForTrackBy
.Closes #1323