Closed
Bug 1235023
Opened 9 years ago
Closed 9 years ago
Relax no-multi-spaces Eslint rule with ObjectExpression
Categories
(Testing :: General, defect)
Testing
General
Tracking
(firefox46 fixed)
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: mak, Assigned: mak)
References
Details
Attachments
(1 file)
An example:
var containers = [
{ label: "Today", offset: 0, visible: true },
{ label: "Yesterday", offset: -1, visible: true },
{ label: "Last 7 days", offset: -3, visible: true },
];
Comment 1•9 years ago
|
||
Hm, I would still prefer no spaces between the braces and the leading label and trailing value.
Can we special-case the alignment case in any way?
Assignee | ||
Comment 2•9 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #1)
> Hm, I would still prefer no spaces between the braces and the leading label
> and trailing value.
this doesn't control that spacing, that is optional afaik.
This only controls the spacing after the comma.
Assignee | ||
Comment 3•9 years ago
|
||
(that is, this only allows/disallows multi-spaces, usually they are not allowed, so I'm adding exceptions to allow multi spaces when we usually use them to align)
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/29221/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/29221/
Attachment #8702911 -
Flags: review?(gijskruitbosch+bugs)
Comment 5•9 years ago
|
||
Comment on attachment 8702911 [details]
MozReview Request: Bug 1235023 - Relax no-multi-spaces Eslint rule with ObjectExpression.r=Mossop
https://reviewboard.mozilla.org/r/29221/#review26015
rs=me
Attachment #8702911 -
Flags: review?(gijskruitbosch+bugs) → review+
Comment 7•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•