ember-cli / ember-template-imports

Template import support in Ember!
MIT License
74 stars 39 forks source link

Export the constants in utils file explicitly for lint tooling #178

Closed chrisrng closed 1 year ago

chrisrng commented 1 year ago

Today we use a direct import of the utils file to support lint tooling (see https://github.com/ember-cli/eslint-plugin-ember/blob/master/lib/preprocessors/glimmer.js#L7 and https://github.com/ember-template-lint/ember-template-lint/blob/master/lib/extract-templates.js#L2 for examples)

Since https://github.com/ember-template-imports/ember-template-imports/pull/78 mentions that this utils export will go away in the next major version we need to explicitly export it instead from ember-template-imports

patricklx commented 1 year ago

utils will not be needed in thr feature as hbs templates are deprecated and only template tag will be used. https://github.com/embroider-build/content-tag/tree/main needs to expose template location information and explicit mode for lint tooling. I also created a babel version of it. Which is here: https://github.com/patricklx/ember-template-preprocessor and already exposes that information and can build explicit mode. Both are required for linting

NullVoxPopuli commented 1 year ago

These have all been removed in v4. You'll want to use content-tag for tooling dev