React eslint not catching the use of underscore with internal methods
- 主要言語
- JavaScript
- スター
- 148k
- フォーク
- 26.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In the [React/JSX Styleguide 'Methods' section](https://github.com/airbnb/javascript/blob/master/react/README.md#methods) it says you shouldn't use `_` to prefix internal methods. However, some of my code contains this convention and it isn't being caught by the linter. I double-checked the eslint rules for react/jsx files and there doesn't seem to be a rule defined for this convention.
Is this intentional? If so, why specify the rule in your documentation? I found a related issue (#490), but it wasn't clearly stated whether or not this rule should definitely be adhered to but rather that it's more or less up to the programmer.
Any clarification would be greatly appreciated.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
react/README.md の React/JSX Styleguide の「Methods」セクションから始め、React/JSX ファイル用の既存の ESLint ルールを調査してください。関連する issue #490 を確認し、文書化されているアンダースコア規約を適用すべきかどうかを判断してください。ポリシーを決定し、それに対応するドキュメントまたは linting の変更を行えば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- eslint, javascript
- 領域
- documentation, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100