diff --git a/lib/rules/template-deprecated-inline-view-helper.js b/lib/rules/template-deprecated-inline-view-helper.js
index 31ffdf2051..9970b2b254 100644
--- a/lib/rules/template-deprecated-inline-view-helper.js
+++ b/lib/rules/template-deprecated-inline-view-helper.js
@@ -23,6 +23,11 @@ module.exports = {
},
create(context) {
+ const isStrictMode = context.filename.endsWith('.gjs') || context.filename.endsWith('.gts');
+ if (isStrictMode) {
+ return {};
+ }
+
const sourceCode = context.sourceCode;
// Track block param names to avoid false positives on locals like:
diff --git a/tests/lib/rules/template-deprecated-inline-view-helper.js b/tests/lib/rules/template-deprecated-inline-view-helper.js
index 0e3a0bc646..8d47dad02b 100644
--- a/tests/lib/rules/template-deprecated-inline-view-helper.js
+++ b/tests/lib/rules/template-deprecated-inline-view-helper.js
@@ -30,6 +30,15 @@ ruleTester.run('template-deprecated-inline-view-helper', rule, {
'{{yield hash=view.foo}}',
// hash pair with key "to" should not be flagged
'{{some-component to=view.foo}}',
+ // Rule is HBS-only: `view` in GJS/GTS may be a legitimate imported JS binding
+ {
+ filename: 'test.gjs',
+ code: "{{view 'awful-fishsticks'}}",
+ },
+ {
+ filename: 'test.gts',
+ code: '{{view.bad-fishsticks}}',
+ },
],
invalid: [
{