Dave Townsend
d0ae98c6c8
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.
--HG--
extra : commitid : 65gYzRiXqKe
extra : rebase_source : 9a6bcdd22f63b4aba52052f4f4ad0f20e6a2b446
2015-12-10 17:15:23 -05:00
Kris Maglione
b7869a821a
Bug 1229874: Support defineLazyServiceGetter in components-import eslint helper. r=miker
...
--HG--
extra : commitid : JasCECgeDvZ
extra : rebase_source : 4f2bc306a845e8b2f561be4430d6741f44b204ec
extra : amend_source : 8955e75045f39f47b758587b635d7d2cec85f7f5
extra : source : 6745f48efb28b3ec118166e1211b02354ab01769
2015-12-02 16:49:50 -08:00
Dave Townsend
48323f5e76
Bug 1231867: Remove use of the spread operator to support node 4.2. r=miker
...
--HG--
extra : commitid : 56RoXh2T8JM
extra : rebase_source : 1d55bfbb97a042168cc608bce84897bf5700b5a6
2015-12-11 07:19:54 -05:00
Patrick Brosset
8b2a7c7941
Bug 1229859 - Introduce new import-globals-from eslint rule to import globals from other modules; r=Mossop
...
--HG--
extra : commitid : 3Qt8LBtIO0m
extra : histedit_source : 5907ea5fdfeaa84b116dcc87bfae96e90d2ead9f
2015-12-04 11:21:21 +01:00
Dave Townsend
e966ac1914
Bug 1229858: Add a preprocessor to convert XBL into JavaScript blocks for eslint. r=miker
...
--HG--
extra : commitid : KBrnZcg3l6i
extra : rebase_source : 0b961d96d021923d7ef2855367549b3aa2a077da
extra : amend_source : 7f403c59c018656bcff98e7fc2996bfbb9b853d3
2015-12-02 17:03:33 -08:00
Patrick Brosset
c21276e895
Bug 1230093 - Make the import-headjs-globals rule store variables correctly; r=Mossop
...
--HG--
extra : commitid : E3S2akSJ38y
extra : rebase_source : 3c7eea380147f97e290809f41bb8b8a95c05ea3c
2015-12-03 11:17:02 +01:00
Tom Tromey
2f425d9745
Bug 1224735 - only emit one error per possible CPOW use; r=miker,Ms2ger
2015-12-03 07:54:43 -07:00
Michael Ratcliffe
70823931ab
Bug 1228363: Fixed eslint balanced-listeners rule to ignore listeners with no arguments. r=pbrosset
...
--HG--
extra : commitid : 4h60KEIjzn0
extra : rebase_source : 8c33f3639546c701b9e2d71d74af40cc1ea4c55b
2015-11-27 14:12:52 -08:00
Michael Ratcliffe
0520cbc652
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.
--HG--
extra : commitid : BjJFvuFTZXZ
extra : rebase_source : 7781800bce61036a04734b858c8d7d13910377f1
2015-11-20 16:57:20 +00:00
Michael Ratcliffe
4a49c900a9
Bug 1225289 - Create appropriate .eslintrc for eslint-plugin-mozilla folder r=pbrosset
...
--HG--
extra : commitid : KJ27ZjmERRc
extra : rebase_source : 3477b633c9eb2f7bf68116f917e82ab0bd72d5dc
extra : amend_source : 76c679b125b5a9c94d95591d2d56d08b4f187b06
2015-11-20 16:55:58 +00:00
Michael Ratcliffe
5ac2b8706d
Bug 1217922 - eslint head.js plugin does not seem to work r=pbrosset
...
--HG--
extra : commitid : 7lU7InBJixs
extra : rebase_source : df9d023a5e87aaa593d6fdbe96577765739641e6
extra : amend_source : 6158d4ffd46cf0fbf7f69ce9d4266279f5f29a10
2015-11-20 16:51:48 +00:00
Michael Ratcliffe
44786e5ba4
Bug 1222232 - Help `mach eslint` find espree and escope r=pbrosset
...
--HG--
extra : commitid : 2Wnf9u36M9V
extra : rebase_source : d6360c430b7653e2fcf3d6576c7cf5f86b4ab922
extra : amend_source : 6c5ddfd558420210179b352b105cb0fe9ad93b0b
2015-11-20 16:28:57 +00:00
Tom Tromey
77c4a729db
Bug 1224735 - don't use "for..of" in eslint plugin. r=miker
...
--HG--
extra : rebase_source : 4d7d04b4b59ba28318ba0b0180c09e9b3db097e4
2015-11-16 07:47:00 +01:00
Michael Ratcliffe
65b3f9f335
Bug 1218412 - Create ESLint rule to check for CPOWS in browser mochitests r=pbrosset
...
--HG--
extra : transplant_source : %A8%14Q%E4n%F4%A8%001%B7F%5D%04WO%A2A%CFY%D4
2015-10-30 17:24:45 +00:00
Patrick Brosset
c1e49d5de4
Bug 1218425 - ESLint rule that warns against aArg notation in function params; r=miker
...
--HG--
extra : rebase_source : a8bd5eb51bf883a1a944dc14f7a7f1596326906f
2015-10-28 08:32:02 +01:00
Patrick Brosset
1f0548556f
Bug 1218409 - Eslint rule that checks for balanced listeners. r=miker
...
--HG--
extra : rebase_source : f58a5e12f328e22a739167fada8b831f992915e7
2015-10-27 11:21:46 +01:00
Michael Ratcliffe
765d14495b
Bug 1217851 - Fix mozplugin's import-headjs-globals on Windows. r=pbro
...
--HG--
extra : transplant_source : %03%94%CF%F9%DF6%BB%7Ce%13%000%EB%2B%21%15%ADO%08%C1
2015-10-26 13:16:03 +00:00
Michael Ratcliffe
d6f393f177
Bug 1205814 - Missed a brief description in rst docs r=pbrosset
...
--HG--
extra : transplant_source : s%BE%95r%3E%97%CD%A5%28P%F5%3BS%92%D6kV%E9P%ED
2015-10-26 14:47:54 +00:00
Michael Ratcliffe
97c2615aec
Bug 1205814 - mozilla eslint plug: allow top level var only r=pbrosset
...
--HG--
extra : transplant_source : %F2%20%B4%BB%C6%E6%1C%9A%89c%FC%8E%3Bv%0C%E6%95%F9H8
2015-10-26 14:39:47 +00:00
J. Ryan Stinnett
6335fd7480
Bug 1203159 - Clean up various incorrect paths. r=ochameau
2015-10-21 12:48:55 -05:00
J. Ryan Stinnett
986f2a5cde
Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau
2015-10-21 12:48:53 -05:00
Michael Ratcliffe
3efb3a9e6f
Bug 1203520 - We need a DevTools ESLint plugin containing our ruleset r=gps
...
--HG--
extra : commitid : FrMOnVBUxmY
extra : rebase_source : c38511e94177f651a0decad41180991c54cb0f33
2015-09-30 14:44:48 +01:00