jsx-eslint/eslint-plugin-react

Rule proposal: check constructor params for props and context

Open

#626 建立於 2016年6月7日

在 GitHub 查看
 (7 留言) (5 反應) (0 負責人)JavaScript (8,630 star) (2,797 fork)batch import
help wantednew rule

描述

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.

貢獻者指南