jsx-eslint/eslint-plugin-react
Voir sur GitHubRule proposal: check constructor params for props and context
Open
#626 ouverte le 7 juin 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.