Closed Bug 1513597 Opened 5 years ago Closed 8 months ago

Fix/enable ESLint react/forbid-prop-types

Categories

(Tree Management :: Treeherder: Frontend, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: bolah2009)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Example failure shown by `yarn lint` after removing the rule-disabling from .eslintrc.js:

error: Prop type `object` is forbidden (react/forbid-prop-types) at ui\job-view\pushes\Push.jsx:454:3:
  452 |
  453 | Push.propTypes = {
> 454 |   push: PropTypes.object.isRequired,
      |   ^
Blocks: 1443129
No longer blocks: 1183749
Blocks: 1183749
No longer blocks: treeherder-react

Is this still valid?

Flags: needinfo?(cdawson)

This bug is still valid, yes. I think what we need to do is update these uses of PropTypes.object to define a shape for these props. Are you interested in working on this?

Flags: needinfo?(cdawson)

Hi, can you assign me to this? I would like to work on it. Thanks.

Flags: needinfo?(cdawson)

Thanks! I appreciate you taking a crack at this. :)

Assignee: nobody → bola_ahmed2002
Flags: needinfo?(cdawson)

The linked PR was merged, and this rule is no longer turned off. Closing as fixed.

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: