jsx-eslint/eslint-plugin-react
View on GitHubRule proposal: check constructor params for props and context
Open
#626 opened on Jun 7, 2016
help wantednew rule
Description
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.