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): [prefer-self-closing-tags] consider ng-content and ng-template elements #1573
fix(eslint-plugin-template): [prefer-self-closing-tags] consider ng-content and ng-template elements #1573
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 2c2a4c5. 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 7 targetsSent with 💌 from NxCloud. |
38d5f20
to
ea26ccc
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1573 +/- ##
==========================================
+ Coverage 89.55% 89.57% +0.01%
==========================================
Files 166 166
Lines 3113 3127 +14
Branches 526 530 +4
==========================================
+ Hits 2788 2801 +13
Misses 195 195
- Partials 130 131 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
65b954e
to
d343e5e
Compare
d343e5e
to
2c2a4c5
Compare
8e97d20
into
angular-eslint:next-major-release/v17
Thanks @json-derulo I've added this to the v17 branch just in case this change in behaviour is particularly disruptive for larger codebases |
@json-derulo I'm afraid I've had to revert for the two plugins, it causes compilation issues with typescript-eslint v6 |
@JamesHenry Could you explain in more detail what the problem with typescript-eslint v6 is? I checked out the |
It includes your commit but then the aforementioned revert to the plugins by me: 2498238 The issue is typescript-eslint/typescript-eslint#7605 |
Currently the prefer-self-closing-tags rule doesn't report errors on empty
<ng-content></ng-content>
and<ng-template></ng-template>
elements, which is fixed by this pull request.Closes #1567