Open
Bug 1513599
Opened 7 years ago
Updated 5 years ago
Fix/enable ESLint 'react/destructuring-assignment'
Categories
(Tree Management :: Treeherder: Frontend, enhancement, P3)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
NEW
People
(Reporter: emorley, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
| Reporter | ||
Comment 1•7 years ago
|
||
Example failure shown by `yarn lint` after removing the rule-disabling from .eslintrc.js:
error: Must use destructuring props assignment (react/destructuring-assignment) at ui\job-view\pushes\PushHeader.jsx:35:16:
33 | return (
34 | <span title="View pushes by this user" className="push-author">
> 35 | <a href={props.url}>{authorEmail}</a>
| ^
36 | </span>
37 | );
38 | }
Updated•6 years ago
|
No longer blocks: treeherder-react
Updated•6 years ago
|
Assignee: nobody → cdawson
Comment 2•6 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•