stenciljs/eslint-plugin

decorators-style conflicts with Prettier

Open

#27 建立於 2021年4月30日

在 GitHub 查看
 (5 留言) (5 反應) (0 負責人)TypeScript (37 fork)auto 404
Help Wantedtriage

倉庫指標

Star
 (71 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南