stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 aberto em 30 de abr. de 2021

Ver no GitHub
 (5 comments) (5 reactions) (0 assignees)TypeScript (37 forks)auto 404
Help Wantedtriage

Métricas do repositório

Stars
 (71 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador