jsx-eslint/eslint-plugin-react
在 GitHub 查看Rule proposal: check constructor params for props and context
Open
#626 创建于 2016年6月7日
help wantednew rule
仓库指标
- Star
- (8,630 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
This rule would check for:
class X extends Component {
constructor(props, context) {
super(props, context);
}
}
React is lenient, so constructor() { super(); } works, so this is just a stylistic preference.