stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 ouverte le 30 avr. 2021

Voir sur GitHub
 (5 commentaires) (5 réactions) (0 assignés)TypeScript (37 forks)auto 404
Help Wantedtriage

Métriques du dépôt

Stars
 (71 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur