stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 opened on 2021年4月30日

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)

説明

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.

コントリビューターガイド