Closed Bug 1515952 Opened 10 months ago Closed 10 months ago

Allow ESLint rule spaced-comment to accept source-map comments

Categories

(Firefox Build System :: Lint and Formatting, enhancement, P2)

enhancement

Tracking

(firefox66 fixed)

RESOLVED FIXED
Tracking Status
firefox66 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

I noticed this in passing the other day, then forgot about it for a bit :-(

The spaced-comment definition we're using doesn't allow for source-map comments, which are typically of the form:

//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map

It seems we should allow this, so that source maps can easily be managed (and don't get changed accidentally).
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/85a2c50c0c6b
Allow ESLint rule spaced-comment to accept source-map comments. r=mossop
https://hg.mozilla.org/mozilla-central/rev/85a2c50c0c6b
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.