Skip to content

fix(eslint-plugin-template): [prefer-static-string-properties] do not check structural directives #2253

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 26, 2025

Conversation

reduckted
Copy link
Contributor

Fixes #2237

A simple fix. The rule should only check BoundAttribute nodes that are in the inputs collection of an element, and not in the templateAttrs collection.

Copy link

nx-cloud bot commented Feb 21, 2025

View your CI Pipeline Execution ↗ for commit 2205adc.

Command Status Duration Result
nx run-many -t e2e-suite --parallel 1 ✅ Succeeded 39s View ↗
nx run-many -t test --codeCoverage ✅ Succeeded 1m 53s View ↗
nx run-many -t build,typecheck,check-rule-docs,... ✅ Succeeded 1m 40s 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 23s View ↗
nx run-many -t build ✅ Succeeded 11s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-21 11:25:48 UTC

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.53%. Comparing base (53a2afe) to head (2205adc).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2253   +/-   ##
=======================================
  Coverage   90.53%   90.53%           
=======================================
  Files         179      179           
  Lines        3559     3559           
  Branches      600      600           
=======================================
  Hits         3222     3222           
  Misses        183      183           
  Partials      154      154           
Flag Coverage Δ
unittest 90.53% <100.00%> (ø)

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

Files with missing lines Coverage Δ
...plate/src/rules/prefer-static-string-properties.ts 100.00% <100.00%> (ø)
...sts/rules/prefer-static-string-properties/cases.ts 100.00% <ø> (ø)

@JamesHenry JamesHenry merged commit 1b5b511 into angular-eslint:main Feb 26, 2025
14 checks passed
@reduckted reduckted deleted the bugfix/2237 branch February 26, 2025 08:53
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.

[template/prefer-static-string-properties] ngSwitchCase should not trigger this rule
2 participants