jsx-eslint/eslint-plugin-react
GitHub で見るRule proposal: check constructor params for props and context
Open
#626 opened on 2016年6月7日
help wantednew rule
Repository metrics
- Stars
- (8,630 stars)
- PR merge metrics
- (30d に merged 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.