Skip to content

Post-merge-review: Fix template-deprecated-render-helper false positive in GJS/GTS#2665

Open
johanrd wants to merge 1 commit intoember-cli:masterfrom
johanrd:night_fix/template-deprecated-render-helper
Open

Post-merge-review: Fix template-deprecated-render-helper false positive in GJS/GTS#2665
johanrd wants to merge 1 commit intoember-cli:masterfrom
johanrd:night_fix/template-deprecated-render-helper

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

What's broken on master

The rule flags {{render ...}} as the classic Ember resolver-resolved helper. In GJS/GTS, render is commonly imported from @ember/test-helpers or @testing-library/ember — unrelated to the classic {{render}} helper. templateMode: 'loose' metadata is not runtime-enforced.

Fix

Gate to .hbs files only. The classic helper cannot be reached in strict mode.

Test plan

27/27 tests pass. 2 new GJS/GTS valid tests fail on master.


Co-written by Claude.

The {{render}} helper is classic-Ember-only; in GJS/GTS files, `render`
is a legitimate JS binding (e.g. from @ember/test-helpers) and must not
be flagged.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 10:29
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.

1 participant