Skip to content

fix(eslint-plugin-template): prevent the slot tag from being self-closing #2088

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

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

joanllenas
Copy link
Contributor

@joanllenas joanllenas commented Oct 23, 2024

The slot tag is not included in the tags exposed by the aria-query library, which is used to extract native DOM elements and determine which tags can be self-closing. This fix adds the slot tag and a few other missing tags

Fixes #2087

joanllenas and others added 2 commits October 23, 2024 21:50
…sing

The slot tag is not included in the tags exposed by the aria-query library, which is used to extract
native DOM elements and determine which tags can be self-closing. This fix adds the slot tag and a
few other missing tags

fix angular-eslint#2087
Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! May as well include all the examples to protect against regressions

@JamesHenry JamesHenry changed the title fix(eslint-plugin-template): prevent the slot tag from being self-clo… fix(eslint-plugin-template): prevent the slot tag from being self-closing Nov 18, 2024
Copy link

nx-cloud bot commented Nov 18, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 2b8b2cb. 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 5 targets

Sent with 💌 from NxCloud.

@JamesHenry JamesHenry marked this pull request as draft November 23, 2024 13:08
@JamesHenry JamesHenry marked this pull request as ready for review December 5, 2024 09:43
Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to please update the rule docs:

pnpm update-rule-docs

We auto generate examples from the unit tests

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.74%. Comparing base (ae6123b) to head (2b8b2cb).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2088   +/-   ##
=======================================
  Coverage   90.73%   90.74%           
=======================================
  Files         177      177           
  Lines        3509     3510    +1     
  Branches      592      592           
=======================================
+ Hits         3184     3185    +1     
  Misses        171      171           
  Partials      154      154           
Flag Coverage Δ
unittest 90.74% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...lint-plugin-template/src/utils/get-dom-elements.ts 100.00% <100.00%> (ø)
...late/tests/rules/prefer-self-closing-tags/cases.ts 100.00% <ø> (ø)

@JamesHenry JamesHenry merged commit e264546 into angular-eslint:main Dec 5, 2024
8 checks passed
@JamesHenry
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prefer-self-closing-tags] The <slot> tag should not be considered for self-closing
2 participants