Closed
Bug 1370240
Opened 9 years ago
Closed 9 years ago
Enable the ESLint no-control-regex rule across mozilla-central
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox55 fixed)
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file)
no-control-regex is already enabled for a few subdirectories, there's only one instance in the tree currently - that should be there. So I think we should enable it across the tree, and if we do need to break it, then it'll be obvious & intentional.
From:
http://eslint.org/docs/rules/no-control-regex
Control characters are special, invisible characters in the ASCII range 0-31. These characters are rarely used in JavaScript strings so a regular expression containing these characters is most likely a mistake.
| Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8874449 [details]
Bug 1370240 - Enable the ESLint no-control-regex rule across mozilla-central.
https://reviewboard.mozilla.org/r/145820/#review149780
Attachment #8874449 -
Flags: review?(dtownsend) → review+
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f9eddc0d3345
Enable the ESLint no-control-regex rule across mozilla-central. r=mossop
Comment 4•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
Product: Testing → Firefox Build System
Updated•7 years ago
|
Version: Version 3 → 3 Branch
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•