jsx-eslint/eslint-plugin-react
Rule proposal: check constructor params for props and context
オープン
#626 opened on 2016/06/07
help wantednew rule
Repository metrics
- Stars
- (9,293 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
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.