jsx-eslint/eslint-plugin-react

Rule proposal: check constructor params for props and context

オープン

#626 opened on 2016/06/07

 (7 件のコメント) (5 件のリアクション) (0 人の担当者)JavaScript (2,731 件のフォーク)batch import
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.

コントリビューターガイド