Repository: ember-template-lint/ember-template-lint (js)

Issue:
no-implicit-this and hasBlock
The `no-implicit-this` rule complains about `hasBlock` but `hasBlock` should not be used with either `this`, nor with `@` (as it returns `undefined`). Perhaps this rule can implicitly ignore `hasBlock`.

Pull request description:
Allow has-block and hasBlock in the no-implicit-this rule
Fixes #481 

Patch:
diff --git a/lib/rules/lint-no-implicit-this.js b/lib/rules/lint-no-implicit-this.js
index 9abaee3f..823fd368 100644
--- a/lib/rules/lint-no-implicit-this.js
+++ b/lib/rules/lint-no-implicit-this.js
@@ -19,6 +19,8 @@ function isString(value) {
 // Allow Ember's builtin argless syntaxes
 const ARGLESS_BUILTINS = [
   'debugger',
+  'has-block',
+  'hasBlock',
   'input',
   'outlet',
   'textarea',


Test patch:
diff --git a/test/unit/rules/lint-no-implicit-this-test.js b/test/unit/rules/lint-no-implicit-this-test.js
index 6854c48c..9ff5e3a0 100644
--- a/test/unit/rules/lint-no-implicit-this-test.js
+++ b/test/unit/rules/lint-no-implicit-this-test.js
@@ -15,6 +15,8 @@ let statements = [
 
 let good = [
   '{{debugger}}',
+  '{{has-block}}',
+  '{{hasBlock}}',
   '{{input}}',
   '{{outlet}}',
   '{{textarea}}',