Open boris-petrov opened 3 years ago
I wonder why I get different results. When I test using ember-bootstrap, the rule fails on this line since there is no file path:
/Users/dwickern/code/ember-bootstrap/tests/integration/components/bs-tab/pane-test.js
13:18 error 1 error(s): The "path" argument must be of type string. Received undefined hbs/check-hbs-template-literals
27:18 error 1 error(s): The "path" argument must be of type string. Received undefined hbs/check-hbs-template-literals
49:18 error 1 error(s): The "path" argument must be of type string. Received undefined hbs/check-hbs-template-literals
What hbs file path is being passed for you?
You’ve hit this issue - https://github.com/ember-template-lint/eslint-plugin-hbs/issues/34. If you disable the hbs/... rule in ESLint you’ll start hitting this issue here, at least that’s what I saw in VSCode (not sure why it continued working in VSCode after I disabled the rule - perhaps because I didn’t restart it).
This leads to:
This doesn't make sense in this case.
cc @rwjblue @dwickern