Open jamescdavis opened 2 years ago
Since ember-template-lint 4.x has been converted to ESM, eslint-plugin-hbs is no longer compatible (the hbs/check-hbs-template-literals rule cannot load ember-template-lint since it is using require()):
ember-template-lint
eslint-plugin-hbs
hbs/check-hbs-template-literals
require()
https://github.com/ember-template-lint/eslint-plugin-hbs/blob/7cc617fb33eed7b5254ca34f103b74a3e376216a/lib/rules/check-hbs-template-literals.js#L51
Once ESLint supports async rules, it will be possible to update the rule to load ember-template-lint via:
await import('ember-template-lint')
Supporting async rules is on the ESLint 2022 Roadmap.
For now, you can try https://github.com/un-ts/synckit
See https://github.com/mdx-js/eslint-mdx/blob/master/packages/eslint-mdx/src/worker.ts for example.
Since
ember-template-lint
4.x has been converted to ESM,eslint-plugin-hbs
is no longer compatible (thehbs/check-hbs-template-literals
rule cannot loadember-template-lint
since it is usingrequire()
):https://github.com/ember-template-lint/eslint-plugin-hbs/blob/7cc617fb33eed7b5254ca34f103b74a3e376216a/lib/rules/check-hbs-template-literals.js#L51
Once ESLint supports async rules, it will be possible to update the rule to load
ember-template-lint
via:Supporting async rules is on the ESLint 2022 Roadmap.