Closed
Bug 1361976
Opened 7 years ago
Closed 7 years ago
ESLint hooks should ensure that the ESLint setup is up to date
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)
Some things, e.g. globals, are contained within eslint-plugin-mozilla. We therefore want to make sure it is as up to date as possible so that we get the latest config. Additionally, now we have hooks, developers may not be running ./mach eslint as much and hence this will ensure it is more likely to be kept updated.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8865467 [details] Bug 1361976 - ESLint hooks should ensure that the ESLint setup is up to date. https://reviewboard.mozilla.org/r/137120/#review142788 I'm not totally sold on putting this into the hooks but I guess we can see how it works out. ::: tools/lint/eslint/setup_helper.py:39 (Diff revision 1) > VERSION_RE = re.compile(r"^\d+\.\d+\.\d+$") > CARET_VERSION_RANGE_RE = re.compile(r"^\^((\d+)\.\d+\.\d+)$") > > +# These two should be kept in sync. > EXTENSIONS = ['.js', '.jsm', '.jsx', '.xml', '.html', '.xhtml'] > +EXTENSIONS_RE = re.compile(r'.+\.(?:js|jsm|jsx|xml|html|xhtml)$') Surely we can do this automatically.
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8865467 [details] Bug 1361976 - ESLint hooks should ensure that the ESLint setup is up to date. https://reviewboard.mozilla.org/r/137122/#review142786 ::: tools/lint/eslint/setup_helper.py:39 (Diff revision 1) > VERSION_RE = re.compile(r"^\d+\.\d+\.\d+$") > CARET_VERSION_RANGE_RE = re.compile(r"^\^((\d+)\.\d+\.\d+)$") > > +# These two should be kept in sync. > EXTENSIONS = ['.js', '.jsm', '.jsx', '.xml', '.html', '.xhtml'] > +EXTENSIONS_RE = re.compile(r'.+\.(?:js|jsm|jsx|xml|html|xhtml)$') Surely we can do that automatically?
Attachment #8865467 -
Flags: review?(dtownsend) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac59d773e2c2 ESLint hooks should ensure that the ESLint setup is up to date. r=mossop
Comment 7•7 years ago
|
||
Backed out for busting ESlint (module setup_helper missing): https://hg.mozilla.org/integration/autoland/rev/c1c081080d82eb6bc5a41bf8d3528807a8afac20 Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=ac59d773e2c278fa50f4cd94013fd1b4e0daa574&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=99427848&repo=autoland > ImportError: No module named setup_helper
Flags: needinfo?(standard8)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•7 years ago
|
||
Looks like I somehow got the patches messed up :-( Mozreview was also not giving decent interdiffs (and still isn't). However, I've got the right thing now which will hopefully work this time.
Flags: needinfo?(standard8)
Comment 10•7 years ago
|
||
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/23e285c5aa70 ESLint hooks should ensure that the ESLint setup is up to date. r=mossop
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/23e285c5aa70
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•6 years ago
|
Product: Testing → Firefox Build System
Updated•5 years ago
|
Version: Version 3 → 3 Branch
Updated•2 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
•