Commit Graph

60 Commits

Author SHA1 Message Date
Patrick Brosset
b359cfa140 Bug 1252099 - Final eslint cleanups in devtools/client/inspector/markup/test; r=miker
Many event-bubble tests had max-len issues that would have been really
awkward to fix by wrapping the lines. So I decided to disable eslint for
those lines instead.

This patch fixes the last remaining eslint issues and un-ignores the
directory in .eslintignore.

MozReview-Commit-ID: KQ8qtrFceaf
2016-03-02 16:14:16 +01:00
Alexandre Poirot
ca1358a569 Bug 1245875 - Remove Tilt from tree. r=vporof,jwalker 2016-03-03 02:27:22 -08:00
Brendan Dahl
0e271eeaf0 Bug 1235869 - Remove web runtime from android. r=myk 2016-02-29 10:31:00 +01:00
Yury Delendik
a9494f08ad Bug 1250046 - Remove Shumway core files. r=till 2016-02-23 18:07:05 -06:00
Sebastian Hengst
1e68a8719e Bug 1251916 - Use standard JavaScript features in toolkit/components/passwordmgr to pass eslint checks: enable eslint. r=MattN
MozReview-Commit-ID: F8nvRExCbff
2016-02-28 14:12:00 -08:00
Sebastian Hengst
d346ff4b6f Bug 1251748 - Remove eslint exclusion of removed pocket directory. r=mixedpuppy
MozReview-Commit-ID: HwYV5HYkGYL
2016-02-26 23:22:03 +01:00
Tim Nguyen
500cfa3af0 Bug 1251720 - Remove Storage Inspector directory from .eslintignore. r=pbro
MozReview-Commit-ID: 1J0FJcnF69v
2016-02-26 21:54:09 +01:00
Wes Kocher
b371b75b7d Backed out changeset 26bbd4cee816 (bug 1250104) because the test it added is failing
MozReview-Commit-ID: 5RWr4L5CzV2
2016-02-26 09:52:24 -08:00
Alexis Métaireau
11879d5c90 Bug 1250104 - Import the "jsesc" library for escaping JavaScript strings. r=rnewman 2016-02-24 15:40:55 +01:00
Patrick Brosset
2a7bba1161 Bug 1242898 - Clean devtools/client/animationinspector of eslint errors; r=me
MozReview-Commit-ID: 8kRnACID8A6
2016-02-26 12:55:57 +01:00
Patrick Brosset
866bd890ab Bug 1246677 - 7 - Clean remaining ruleview and tests eslint warnings; r=jdescottes
MozReview-Commit-ID: BcyEv4fUWJZ
2016-02-23 17:09:01 +01:00
Ryan VanderMeulen
2c1ff5b5d4 Backed out 10 changesets (bug 1246677) for causing frequent OSX browser_rules_completion-existing-property_01.js failures (10.6 and 10.10).
Backed out changeset a6d3a7a5e4ea (bug 1246677)
Backed out changeset 5dcb51fcef15 (bug 1246677)
Backed out changeset e450c5329a06 (bug 1246677)
Backed out changeset a65e8badc4c4 (bug 1246677)
Backed out changeset 0cdde48161bb (bug 1246677)
Backed out changeset bab3de413d37 (bug 1246677)
Backed out changeset e4f6cc6197cb (bug 1246677)
Backed out changeset 34e6b56e419d (bug 1246677)
Backed out changeset 5067508e5db4 (bug 1246677)
Backed out changeset 913b4129466e (bug 1246677)
2016-02-24 21:04:31 -05:00
Patrick Brosset
571ce3b588 Bug 1246677 - 7 - Clean remaining ruleview and tests eslint warnings; r=jdescottes
MozReview-Commit-ID: BcyEv4fUWJZ
2016-02-23 17:09:01 +01:00
Dave Townsend
9d4c7a1cd4 Bug 1245916: Add additional browser window scripts to eslint globals. r=felipe
This adds more of the scripts that browser.js relies on and also makes
browser-chrome head files import the browser.js globals.

The MOZ_JSDOWNLOADS block in contentAreaUtils only seems to hide a single
function, I don't see any need to keep hiding that now we're on by default.

MozReview-Commit-ID: 5zvF3JtJrZG
2016-02-05 12:16:39 -08:00
Dave Townsend
00ec37e011 Bug 1245916: XBL bindings should support global declarations in comments. r=miker
To properly lint XBL files we need to support things like import-globals-from
and other ESlint comment directives so we have to pass comments through to the
code blocks that ESlint parses. Unfortunately the way the XBL processor works
now is by passing a separate code block for every method/property/etc. in the
XBL and ESlint doesn't retain state across the blocks so we would have to prefix
every block with every comment. Instead this change makes us output just a
single block that roughly looks like this:

<comments>
var bindings = {
  "<binding-id>": {
    <binding-part-name>: function() { ... }
  }
}

This has some interesting bonuses. Defining the same ID twice will cause a lint
failure. Same for the same field in a binding. The line mapping is a little
harder and there are still a few lines that won't map directly back to the
original file but they should be rare cases. The only downside is that since
some bindings have the same binding declared differently for different platforms
we have to exclude those from linting for now.

MozReview-Commit-ID: CAsPt5dtf6T
2016-02-05 12:13:34 -08:00
Phil Ringnalda
88e064914a Backed out 5 changesets (bug 1245916) for browser-chrome and devtools bustages
CLOSED TREE

Backed out changeset 70eca07367f4 (bug 1245916)
Backed out changeset 04c1740aa499 (bug 1245916)
Backed out changeset b554c7ce41c4 (bug 1245916)
Backed out changeset 01675e4828b5 (bug 1245916)
Backed out changeset 878db4caf845 (bug 1245916)
2016-02-15 13:58:27 -08:00
Dave Townsend
4a0b43e1a4 Bug 1245916: Add additional browser window scripts to eslint globals. r=felipe
This adds more of the scripts that browser.js relies on and also makes
browser-chrome head files import the browser.js globals.

The MOZ_JSDOWNLOADS block in contentAreaUtils only seems to hide a single
function, I don't see any need to keep hiding that now we're on by default.

MozReview-Commit-ID: 5zvF3JtJrZG
2016-02-05 12:16:39 -08:00
Dave Townsend
838280fe44 Bug 1245916: XBL bindings should support global declarations in comments. r=miker
To properly lint XBL files we need to support things like import-globals-from
and other ESlint comment directives so we have to pass comments through to the
code blocks that ESlint parses. Unfortunately the way the XBL processor works
now is by passing a separate code block for every method/property/etc. in the
XBL and ESlint doesn't retain state across the blocks so we would have to prefix
every block with every comment. Instead this change makes us output just a
single block that roughly looks like this:

<comments>
var bindings = {
  "<binding-id>": {
    <binding-part-name>: function() { ... }
  }
}

This has some interesting bonuses. Defining the same ID twice will cause a lint
failure. Same for the same field in a binding. The line mapping is a little
harder and there are still a few lines that won't map directly back to the
original file but they should be rare cases. The only downside is that since
some bindings have the same binding declared differently for different platforms
we have to exclude those from linting for now.

MozReview-Commit-ID: CAsPt5dtf6T
2016-02-05 12:13:34 -08:00
Gijs Kruitbosch
294020ca8f Bug 1246591 - fix moz.build file and .eslintignore, r=MattN 2016-02-08 12:58:28 +00:00
Patrick Brosset
62328936e5 Bug 1244755 - 3 - Remove CPOW usages and eslint warnings from devtools/client/inspector/layout; r=miker 2016-02-04 20:56:32 +01:00
Joe Whitfield-Seed
35ec976981 Bug 1245496 - Fix eslint errors in about:debugging. r=janx 2016-02-04 20:10:08 +00:00
Hector Zhao
da641c43f1 Bug 1242977 - Make services eslintable. r=markh 2016-02-02 10:37:50 +08:00
Tom Tromey
1db574d031 Bug 1240183 - make styleeditor eslint-clean; r=pbro 2016-01-29 08:25:26 -07:00
chaithanya
d5ff8fca4b Bug 1090880 - Remove FUEL.r=mak 2016-01-28 16:47:26 +01:00
Carsten "Tomcat" Book
3a27201cda Merge mozilla-central to mozilla-inbound 2016-01-27 12:10:56 +01:00
Cykesiopka
e670007e59 Bug 1242254 - Enable initial set of eslint rules for PSM. r=dkeeler
These rules are copied from toolkit/.eslintrc (with non-passing rules excluded and previously commented out and passing rules included).
2016-01-24 02:35:36 -08:00
Patrick Brosset
0ecf736dba Bug 1242689 - Fix eslint errors in devtools/client/*.js and un-ignore the files; r=tromey 2016-01-26 10:53:45 +01:00
Gabriel Luong
8ba12a27ac Bug 1242278 - Eslint cleanup of Inspector markup view r=pbro 2016-01-25 15:00:04 -05:00
Jared Wein
3515478c82 Bug 1242137 - Fix eslint errors in /browser/components/customizableui. r=gijs 2016-01-23 14:55:27 -05:00
Jared Wein
28b5a035d8 Bug 1241993 - Fix eslint errors in nsBrowserGlue.js. r=gijs 2016-01-22 15:48:20 -05:00
Jared Wein
066d279fe9 Bug 1242125 - Fix eslint errors in /browser/components/uitour. r=mattn 2016-01-23 19:46:10 -05:00
Gijs Kruitbosch
f26bbf1177 Bug 1200639 - part 0: fix eslint issues in nsBrowserContentHandler.js, r=jaws 2016-01-19 22:03:11 +00:00
Patrick Brosset
81d28fa9c5 Bug 1213651 - Avoid server round-trips when displaying animated dom nodes; r=tromey
The main change here is that nodeFronts that have already been displayed
in the timeline are stored in a WeakMap so they can be retrieved from it
next time they're displayed and avoid a server-side round trip which, in
turn, causes the UI to flicker.

The other change is that now, it is possible to tell the animations actor
what is the current walker actor, which allows animation player actors to
directly send the NodeActor ID as part of their forms. Which, in most cases,
completely eliminates the server round-trip, because the corresponding
NodeFronts are already known on the client, so we get them from there.

The last change done here is that AnimationTargetNode now becomes a thin
wrapper on top of the new DomNodePreview component that was extracted so
it can be reused in other places.
2016-01-21 13:19:58 +01:00
Marco Bonardo
28fa46af58 Bug 1230471 - Basic eslint fixes in places. r=mconley 2015-12-10 06:46:49 -05:00
Georg Fritzsche
d1598486c5 Bug 1240091 - Enable linting on more toolkit modules. r=Mossop 2016-01-15 19:20:44 +01:00
Mark Banner
d78c368f6d Bug 1232707 - Build changes to support Loop imported as an add-on. r=mikedeboer,r=glandium 2016-01-14 17:53:32 +00:00
Dave Townsend
9a9c995e2e Bug 1231956: Add devtools to .eslintignore. r=pbrosset
Devtools has a lot of eslint failures right now that would block us from turning
on compile time eslint checks in bug 1229588. For now I'd like to just ignore
the directory and then you can work to clean up the warnings and re-enable
checks at whatever pace you like.
2016-01-11 14:28:54 -08:00
Dave Townsend
e95e6d463f Bug 1238781: Add pre-processed pref file to .eslintignore. r=felipe 2016-01-11 15:35:50 -08:00
Dave Townsend
7ce0e0df27 Bug 1237340: Fix browser and toolkit eslint failures. r=Felipe 2016-01-06 10:10:35 -08:00
Kris Maglione
adff616086 Bug 1230776: Support scripts from HTML files in eslint. r=gps
Also removes related unused variables in mach_commands.py.
2015-12-05 13:17:49 -08:00
Gijs Kruitbosch
267ab11843 Bug 1233492 - make browser/experiments eslintable, r=felipe 2015-12-17 19:42:24 +00:00
Gijs Kruitbosch
026227ff36 Bug 1233470 - make browser/modules eslintable, r=Mossop 2015-12-17 18:31:08 +00:00
Dave Townsend
a8294561b9 Back out the videocontrols piece of bug 1231828 due to b2g breakage and add to the ignore list. r=backout 2015-12-16 12:45:58 -08:00
Patrick Brosset
3a25a5d01b Bug 1229859 - Massively reduce the number of eslint errors in devtools by ignoring lib files, adding missing .eslintrc files and making some rules be warnings; r=Mossop 2015-12-10 15:46:32 -05:00
Robert Helmer
aa5747656e Bug 1230861 - remove add-ons manager from ESLint ignore file. r=mossop 2015-12-06 17:59:36 -08:00
Marco Bonardo
6c5284557e Bug 1230549 - Storage should pass more eslint rules. r=yoric 2015-12-04 17:00:03 +01:00
Kris Maglione
f80fb4d160 Bug 1229874: Part 3 - Enable ESLint in WebExtension code. r=billm
The base .eslintrc is essentially a merge of the root Toolkit .eslintrc and
the devtools .eslintrc, with some minor changes to match our prevalent style.

For the most enforces the coding styles that we've been using most
consistently. There are a couple of significant differences, though:

 * The rule for opening brace alignment can only be applied globally, and
   doesn't make exceptions for top-level functions. I chose to turn it on, and
   change the brace style of existing top-level functions that violated it,
   since the rule seemed worth using, and that's the direction most Toolkit JS
   code has been headed anyway.

 * The rule for switch/case statements requires an added indentation level for
   case statements. Most of our switch statements did not use an extra level
   of indentation, and I initially wrote the rule to enforce that style, until
   I came across case statements that used blocks, and required the extra
   indentation level for sanity.
2015-12-02 16:58:53 -08:00
Dave Townsend
571cd2744f Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN 2015-12-03 10:02:45 -08:00
Dave Townsend
07d8547db4 Backed out 5161ded671e0 for causing Mulet failures 2015-12-03 20:01:43 -08:00
Dave Townsend
fb10bf6f67 Bug 1229519: Fix miscellaneous parts of toolkit to pass eslint checks. r=MattN 2015-12-03 10:02:45 -08:00