Commit Graph
25 Commits
Author SHA1 Message Date
Tom Tromey 227319b8fe Bug 1239426 - handle arrow functions in getASTSource; r=mikeratcliffe 2016-01-19 10:44:10 -07:00
Dave Townsend 5612a27506 Bug 1229224: Add an eslint plugin for importing all browser.js globals for browser-chrome tests. r=miker 2015-12-17 15:33:32 -08:00
Dave Townsend 253d3440f9 Bug 1229224: Support more forms of defining globals and make anywhere we import scripts use them too. r=miker
We're attemping to find globals in JS from many places, this attempts to make
them all use the same methods. Since in some cases we're parsing new files we
can't use the eslint methods for getting the source so I've added a simple way
to convert from AST to a JS string.
2015-12-17 15:31:48 -08:00
Tom Tromey 859b02ab3a Bug 1229911 - recognize DevToolsUtils.defineLazyGetter and defineLazyModuleGetter. r=miker 2015-12-16 13:25:00 +01:00
Dave Townsend 587ab97ceb Bug 1231828: Fix XBL preprocesser to properly handle fields, entities and handlers. r=miker
Fixing some XBL files turned up some bugs in the preprocessor:

* XBL fields aren't just simple JS assignements, they are entire JS blocks which
  are evaluated and the result used for the field. So we don't need eslint to
  parse them as an assignment.
* XBL text can contain entities, in general just replacing every entity with a
  valid JS token should retain the meaning well enough for eslint's purposes.
* Events can have names that aren't valid JS identifiers so just don't use them.
2015-12-10 17:15:23 -05:00
Kris Maglione ef4d15a0eb Bug 1229874: Support defineLazyServiceGetter in components-import eslint helper. r=miker 2015-12-02 16:49:50 -08:00
Dave Townsend 67f842eeac Bug 1231867: Remove use of the spread operator to support node 4.2. r=miker 2015-12-11 07:19:54 -05:00
Patrick Brosset 8a2a7e2ad2 Bug 1229859 - Introduce new import-globals-from eslint rule to import globals from other modules; r=Mossop 2015-12-04 11:21:21 +01:00
Dave Townsend 07937b2d92 Bug 1229858: Add a preprocessor to convert XBL into JavaScript blocks for eslint. r=miker 2015-12-02 17:03:33 -08:00
Patrick Brosset b0f0d2aaa6 Bug 1230093 - Make the import-headjs-globals rule store variables correctly; r=Mossop 2015-12-03 11:17:02 +01:00
Tom Tromey b17f9c1b13 Bug 1224735 - only emit one error per possible CPOW use; r=miker,Ms2ger 2015-12-03 07:54:43 -07:00
Michael Ratcliffe 689a3ed6d7 Bug 1228363: Fixed eslint balanced-listeners rule to ignore listeners with no arguments. r=pbrosset 2015-11-27 14:12:52 -08:00
Michael Ratcliffe a5a7fa5943 Bug 1225289 - Make eslint plugin code conform to .eslintrc r=pbrosset
Added use strict statements now that we are no longer set up for ES6 modules.
2015-11-20 16:57:20 +00:00
Michael Ratcliffe 38dfac94ca Bug 1225289 - Create appropriate .eslintrc for eslint-plugin-mozilla folder r=pbrosset 2015-11-20 16:55:58 +00:00
Michael Ratcliffe b8d85d19f8 Bug 1217922 - eslint head.js plugin does not seem to work r=pbrosset 2015-11-20 16:51:48 +00:00
Michael Ratcliffe aa0ad7d15b Bug 1222232 - Help mach eslint find espree and escope r=pbrosset 2015-11-20 16:28:57 +00:00
Tom Tromey a47f5421ee Bug 1224735 - don't use "for..of" in eslint plugin. r=miker 2015-11-16 07:47:00 +01:00
Michael Ratcliffe 01889d9629 Bug 1218412 - Create ESLint rule to check for CPOWS in browser mochitests r=pbrosset 2015-10-30 17:24:45 +00:00
Patrick Brosset 92069309f9 Bug 1218425 - ESLint rule that warns against aArg notation in function params; r=miker 2015-10-28 08:32:02 +01:00
Patrick Brosset a85c031080 Bug 1218409 - Eslint rule that checks for balanced listeners. r=miker 2015-10-27 11:21:46 +01:00
Michael Ratcliffe 1d375e42fc Bug 1217851 - Fix mozplugin's import-headjs-globals on Windows. r=pbro 2015-10-26 13:16:03 +00:00
Michael Ratcliffe e25a301258 Bug 1205814 - mozilla eslint plug: allow top level var only r=pbrosset 2015-10-26 14:39:47 +00:00
J. Ryan Stinnett 432b1e5e67 Bug 1203159 - Clean up various incorrect paths. r=ochameau 2015-10-21 12:48:55 -05:00
J. Ryan Stinnett 687866dde2 Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Michael Ratcliffe a638984ea2 Bug 1203520 - We need a DevTools ESLint plugin containing our ruleset r=gps 2015-09-30 14:44:48 +01:00