Closed Bug 1180918 Opened 11 years ago Closed 11 years ago

ESLint: Add "avoid-escape" to quotes

Categories

(DevTools :: General, defect)

40 Branch
defect
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
Firefox 42
Tracking Status
firefox42 --- fixed

People

(Reporter: jfong, Assigned: jfong)

Details

Attachments

(1 file)

Currently ESLint will throw an error if we have to use single quotes to avoid escaping double quotes within a string value. If we apply avoid-escape, it will allow this exception so we don't have to do something like "escape \"string like this\"" to make it pass the warning.
Attached patch Bug1180918.patchSplinter Review
Attachment #8630167 - Flags: review?(pbrosset)
Comment on attachment 8630167 [details] [diff] [review] Bug1180918.patch Review of attachment 8630167 [details] [diff] [review]: ----------------------------------------------------------------- Cool, I somehow had missed this option, I was thinking we'd have to write our own rule for this instead. So, good catch. Thanks.
Attachment #8630167 - Flags: review?(pbrosset) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 42
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: