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.

贡献者指南