Skip to content

fix(eslint-plugin-template): [attribute-order] check for ng-template within svg #2223

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 1 commit into from
Feb 8, 2025

Conversation

reduckted
Copy link
Contributor

Fixes #2192

When an ng-template is within an svg element, its tag name is :svg:ng-template.

Copy link

nx-cloud bot commented Jan 29, 2025

View your CI Pipeline Execution ↗ for commit ef0fec3.

Command Status Duration Result
nx run-many -t e2e-suite --parallel 1 ✅ Succeeded 1m View ↗
nx run-many -t test --codeCoverage ✅ Succeeded 1m 36s View ↗
nx run-many -t build,typecheck,check-rule-docs,... ✅ Succeeded 1m 7s View ↗
nx-cloud record -- pnpm nx sync:check ✅ Succeeded 4s View ↗
nx-cloud record -- pnpm format-check ✅ Succeeded 5s View ↗
nx run-many -t test ✅ Succeeded 54s View ↗
nx run-many -t build ✅ Succeeded 30s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-29 12:18:45 UTC

@reduckted
Copy link
Contributor Author

@JamesHenry A similar problem exists in the i18n rule. Would you like me to fix that in this PR, or create a separate PR?

Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.45%. Comparing base (3475d1c) to head (ef0fec3).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2223      +/-   ##
==========================================
+ Coverage   90.44%   90.45%   +0.01%     
==========================================
  Files         177      177              
  Lines        3527     3532       +5     
  Branches      593      595       +2     
==========================================
+ Hits         3190     3195       +5     
  Misses        183      183              
  Partials      154      154              
Flag Coverage Δ
unittest 90.45% <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/rules/attributes-order.ts 94.44% <100.00%> (ø)
...gin-template/tests/rules/attributes-order/cases.ts 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

@JamesHenry JamesHenry merged commit a901624 into angular-eslint:main Feb 8, 2025
8 checks passed
@reduckted reduckted deleted the bugfix/2192 branch February 8, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants