stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 geöffnet am 30. Apr. 2021

Auf GitHub ansehen
 (5 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)TypeScript (37 Forks)auto 404
Help Wantedtriage

Repository-Metriken

Stars
 (71 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide