Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettier-plugin: Improve implementation to work for import alias of hbs #121

Open
wondersloth opened this issue Jul 15, 2021 · 0 comments
Open

Comments

@wondersloth
Copy link
Contributor

Currently, for a component file, formatting will not apply if the tagged template expression is named anything other than hbs.

Improve the prettier plugin such renaming of the export still works.

Formats today

import Component, { hbs } from '@glimmex/component';

export default class Example extends Component {
  static template = hbs`
    <h1>
      Hello World
    </h1>
  `;
}

Currently does not format

import Component, { hbs as tpl } from '@glimmex/component';

export default class Example extends Component {
  static template = tpl`
    <h1>
      Hello World
    </h1>
  `;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant