stenciljs/eslint-plugin

TODO rules

Open

#1 创建于 2019年6月17日

在 GitHub 查看
 (5 评论) (7 反应) (0 负责人)TypeScript (37 fork)auto 404
Good First IssueHelp Wanted

仓库指标

Star
 (71 star)
PR 合并指标
 (PR 指标待抓取)

描述

Pending rules:

  • public apis must be documented
  • order of properties/methods following the stencil’s style guide https://stenciljs.com/docs/style-guide
  • validation of the component’s tag
  • validation of the component’s class name
  • enforce tag-name prefix
  • ban certain tag-name prefixes (like stencil-, stncl-, sc-...) configurable
  • @Element() 's type must be HTML{tag-name}Element
  • mutation of Prop()
  • side mutation of objects and arrays in @State() and @Prop()
  • prefer <Host> vs returning array in render()
  • always prefer <Host>
  • reusage or JSX nodes (not possible in stencil's render)
  • @Watch decorators listens to existing prop or state

Naming:

  • Consistent naming of Props / Events and method

Code quality

  • Too many methods?

贡献者指南