Closed
Bug 1174945
Opened 8 years ago
Closed 8 years ago
enable eslint rules for Loop: no-shadow
Categories
(Hello (Loop) :: Client, defect)
Hello (Loop)
Client
Tracking
(firefox41 fixed)
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: dmosedale, Assigned: andreio)
References
Details
Attachments
(1 file, 2 obsolete files)
82.46 KB,
patch
|
Details | Diff | Splinter Review |
http://eslint.org/docs/rules/no-shadow is what we'd like to enable. Probably the easiest way to do this to just remove the "no-shadow": 0 line from .eslintrc, and allow it to revert to the default, which is: { "rules": { "no-shadow": [2, {"hoist": "functions"}] } } Mark and Mike should feel free to chime in if they disagree...
Assignee | ||
Comment 1•8 years ago
|
||
Assignee | ||
Comment 2•8 years ago
|
||
Added in the commit message.
Attachment #8623169 -
Attachment is obsolete: true
Attachment #8623172 -
Flags: review?(dmose)
Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8623172 [details] [diff] [review] patch.diff Review of attachment 8623172 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks for helping us avoid this pain in the future! r=dmose with the changes requested here. ::: browser/components/loop/.eslintrc @@ +50,5 @@ > "no-multi-spaces": 0, // TBD. > "no-new": 0, // TODO: Remove (use default) > "no-redeclare": 0, // TODO: Remove (use default) > "no-return-assign": 0, // TODO: Remove (use default) > + "no-shadow": [2, {"hoist": "functions"}], I'd just delete this line entirely, so we don't inadvertently miss default values of future added options. ::: browser/components/loop/test/shared/feedbackViews_test.js @@ +30,5 @@ > sandbox.restore(); > }); > > // local test helpers > + function clickHappyFace(elem) { This isn't really an element, it's a react component. How about "component", here, and in similar changes.
Attachment #8623172 -
Flags: review?(dmose) → review+
Assignee | ||
Comment 4•8 years ago
|
||
Fixed review commments.
Attachment #8623172 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 6•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/040a407b0705
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Updated•8 years ago
|
Iteration: --- → 41.3 - Jun 29
Flags: firefox-backlog+
You need to log in
before you can comment on or make changes to this bug.
Description
•