stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 aperta il 30 apr 2021

Vedi su GitHub
 (5 commenti) (5 reazioni) (0 assegnatari)TypeScript (37 fork)auto 404
Help Wantedtriage

Metriche repository

Star
 (71 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

We're using default Prettier options and default @stencil/decorators-style options.

Prettier formats code like this:

class AxsTreeViewItem {
  @Event({ bubbles: true, composed: true })
  axsTreeItemSelected: EventEmitter<any>;
}

but @stencil/decorators-style says The @Event decorator can only be applied as inline.

I expect @stencil/decorators-style to work with Prettier and to not cause warnings.

Guida contributor