stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 opened on Apr 30, 2021

View on GitHub
 (5 comments) (5 reactions) (0 assignees)TypeScript (37 forks)auto 404
Help Wantedtriage

Repository metrics

Stars
 (71 stars)
PR merge metrics
 (PR metrics pending)

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.

Contributor guide