Skip to content

Post-merge-review: Fix template-no-mut-helper: templateMode 'both' and unwrap setterAlternative#2692

Merged
NullVoxPopuli merged 3 commits intoember-cli:masterfrom
johanrd:day_fix/template-no-mut-helper
Apr 14, 2026
Merged

Post-merge-review: Fix template-no-mut-helper: templateMode 'both' and unwrap setterAlternative#2692
NullVoxPopuli merged 3 commits intoember-cli:masterfrom
johanrd:day_fix/template-no-mut-helper

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

Summary

  • Changes templateMode from 'loose' to 'both'mut is a strict-mode ambient keyword so the rule must run in .gjs/.gts
  • Strips accidental {{...}} wrapping from setterAlternative option so the message shows exactly one level of braces

Test plan

  • <template>{{mut foo bar}}</template> → flagged in GJS context
  • setterAlternative: '{{(set this.foo)}}' → message shows {{(set this.foo)}} not {{{{(set this.foo)}}}}

johanrd added 3 commits April 13, 2026 14:44
…rnative

mut is a strict-mode ambient keyword (STRICT_MODE_KEYWORDS), so the rule
must run in .gjs/.gts too — not just .hbs. Also: stop double-wrapping
setterAlternative — the user's expression should be wrapped in {{...}}
exactly once in the suggested replacement.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 17:20
@johanrd johanrd force-pushed the day_fix/template-no-mut-helper branch from 376d5ca to e4ab056 Compare April 13, 2026 17:38
@johanrd johanrd changed the title Fix template-no-mut-helper: templateMode 'both' and unwrap setterAlternative Post-merge-review: Fix template-no-mut-helper: templateMode 'both' and unwrap setterAlternative Apr 13, 2026
@NullVoxPopuli NullVoxPopuli merged commit c37c5ad into ember-cli:master Apr 14, 2026
20 checks passed
@johanrd johanrd deleted the day_fix/template-no-mut-helper branch April 14, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants