Commit Graph

110 Commits

Author SHA1 Message Date
Tom Tromey
ba0f9d2892 Bug 1275637 - Fix eslint errors in webgl-utils.js. r=jryans
MozReview-Commit-ID: 1T2vOPMAj8G
2016-06-20 06:38:39 -06:00
J. Ryan Stinnett
ca7fb511f8 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05:00
Wes Kocher
07d01350a8 Merge fx-team to central, a=merge 2016-06-08 17:06:18 -07:00
Andrew Halberstadt
fc24b11e43 Bug 1271734 - Move all eslint related infrastructure to tools/lint, r=miker
This commit simply moves 'testing/eslint' to 'tools/lint/eslint' and the eslint related
mach command from 'python/mach_commands.py' to 'tools/lint/mach_commands.py'. It shouldn't
have any functional change on running eslint, either through mach or taskcluster.

This is in preparation for bug 1258341, to make the diffs there a little easier to read.

MozReview-Commit-ID: K03sn9lv9Lv

--HG--
rename : testing/eslint/eslint-plugin-mozilla/LICENSE => tools/lint/eslint/eslint-plugin-mozilla/LICENSE
rename : testing/eslint/eslint-plugin-mozilla/docs/balanced-listeners.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/balanced-listeners.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/import-browserjs-globals.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/import-browserjs-globals.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/import-globals.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/import-globals.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/import-headjs-globals.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/import-headjs-globals.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/index.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/index.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/mark-test-function-used.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/mark-test-function-used.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/no-aArgs.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/no-aArgs.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/no-cpows-in-tests.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/no-cpows-in-tests.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/reject-importGlobalProperties.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/reject-importGlobalProperties.rst
rename : testing/eslint/eslint-plugin-mozilla/docs/var-only-at-top-level.rst => tools/lint/eslint/eslint-plugin-mozilla/docs/var-only-at-top-level.rst
rename : testing/eslint/eslint-plugin-mozilla/lib/globals.js => tools/lint/eslint/eslint-plugin-mozilla/lib/globals.js
rename : testing/eslint/eslint-plugin-mozilla/lib/helpers.js => tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js
rename : testing/eslint/eslint-plugin-mozilla/lib/index.js => tools/lint/eslint/eslint-plugin-mozilla/lib/index.js
rename : testing/eslint/eslint-plugin-mozilla/lib/processors/xbl-bindings.js => tools/lint/eslint/eslint-plugin-mozilla/lib/processors/xbl-bindings.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/balanced-listeners.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/balanced-listeners.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/import-browserjs-globals.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/import-browserjs-globals.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/import-globals.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/import-globals.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/import-headjs-globals.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/import-headjs-globals.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/mark-test-function-used.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/mark-test-function-used.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/no-aArgs.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/no-aArgs.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/no-cpows-in-tests.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/no-cpows-in-tests.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/reject-importGlobalProperties.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/reject-importGlobalProperties.js
rename : testing/eslint/eslint-plugin-mozilla/lib/rules/var-only-at-top-level.js => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/var-only-at-top-level.js
rename : testing/eslint/eslint-plugin-mozilla/moz.build => tools/lint/eslint/eslint-plugin-mozilla/moz.build
rename : testing/eslint/eslint-plugin-mozilla/package.json => tools/lint/eslint/eslint-plugin-mozilla/package.json
rename : testing/eslint/manifest.tt => tools/lint/eslint/manifest.tt
rename : testing/eslint/npm-shrinkwrap.json => tools/lint/eslint/npm-shrinkwrap.json
rename : testing/eslint/package.json => tools/lint/eslint/package.json
rename : testing/eslint/update => tools/lint/eslint/update
extra : rebase_source : bb44b6285acf4625079cb6a3aaca7d9ada778c3a
2016-06-02 15:38:36 -04:00
J. Ryan Stinnett
b48b79960b Bug 1278413 - Clean up code style in worker.js, event-emitter.js. r=tromey
MozReview-Commit-ID: LVbo9i0rPqI
2016-06-07 22:32:40 -05:00
J. Ryan Stinnett
e1d147bbfc Bug 1278357 - Clean up code style in transport.js. r=tromey
MozReview-Commit-ID: 3uFu6AhOfbg
2016-06-06 17:39:50 -05:00
Julian Descottes
01e9c7d987 Bug 1202458 - part2: fix eslint errors in string actor;r=pbro
MozReview-Commit-ID: 1nguzarA57L

--HG--
extra : rebase_source : 0e9686790c15cf1e1e0ec6e8fddfe6cd441ef070
extra : source : 49d7963e43d890488ad0ad9b1a592c57bdc2be49
2016-06-02 10:35:03 +02:00
Carsten "Tomcat" Book
d08f21c9a8 Backed out changeset 49d7963e43d8 (bug 1202458) for test failures in test_inspector-mutations-value.html
--HG--
extra : rebase_source : daf55daa5c2f5c0a47babdcf86fb8d81f6ce4b99
2016-06-02 16:30:08 +02:00
Julian Descottes
cd86158629 Bug 1202458 - part2: fix eslint errors in string actor;r=pbro
MozReview-Commit-ID: 1nguzarA57L

--HG--
extra : rebase_source : 4861bf47e31ea6d1d0193663a8c92f16eef12214
extra : histedit_source : 28d396641f0c8f12d9f28bc321a72e0666dd2db8
2016-06-02 10:35:03 +02:00
Tom Tromey
e27f135b3b Bug 1277243 - rename promise_defer.js to defer.js; r=jryans
MozReview-Commit-ID: 9TSQ0Cw82B

--HG--
rename : devtools/shared/promise_defer.js => devtools/shared/defer.js
rename : devtools/shared/tests/unit/test_promise_defer.js => devtools/shared/tests/unit/test_defer.js
extra : transplant_source : %20Kh%D2%21%E9%F9%D1%17L%BD%AC%E5%29%1A%11%06%A9.%98
2016-05-27 13:08:48 -06:00
gasolin
9bccc8284f Bug 1256767 - Fix ESLint errors/warnings in devtools/client/webconsole/console-commands.js; r=linclark
MozReview-Commit-ID: A5L5DqtHjGe

--HG--
extra : transplant_source : %C0%A4wAu%23%83%7Fp%BA%2A%C5%0C%F6%3E4%1B%08%07%D4
2016-04-20 18:06:01 +08:00
Ryan VanderMeulen
b0934aa13f Backed out changeset 75bb440d7525 (bug 1275637) for browser_se_first-run.js failures.
CLOSED TREE
2016-05-26 19:51:33 -04:00
Tom Tromey
c8fa47521b Bug 1275637 - Fix eslint errors in webgl-utils.js. r=jryans
MozReview-Commit-ID: 1T2vOPMAj8G

--HG--
extra : transplant_source : %F0%00%02%AF%1C%C7%C80O%7D%0B%C5%DE%01%80%CF%ED%86%A5%12
2016-05-25 13:39:18 -06:00
Jason Laster
fae5df8bb3 Bug 1265885 - Add devtools module to replace promise.defer. r=jryans
MozReview-Commit-ID: 1Paf8cfkh5Q
2016-05-25 12:40:00 -04:00
Patrick Brosset
4f864f4ffd Bug 1274964 - ESLint cleanup of devtools/client/inspector; r=jryans
MozReview-Commit-ID: HCRVzU6NdM4

--HG--
extra : rebase_source : 375d55c7688599d57615a04f68ed7230cab856c2
extra : amend_source : a0fa5104ef3fbd7ba98512979cfb2396645c07e9
2016-05-23 10:41:02 +02:00
Wes Kocher
78f5e4c770 Bug 1270994 - Re-add webgl-utils.js to .eslineignore because I just intentionally re-broke it CLOSED TREE 2016-05-23 14:08:10 -07:00
Tom Tromey
50ab4ddfdd Bug 1270994 - Fix ESLint errors in devtools/client/shared/*.js; r=jryans
MozReview-Commit-ID: 1od43gBnUq1
2016-05-19 08:35:45 -06:00
Tom Tromey
0d398a243a Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ

--HG--
rename : toolkit/modules/Task.jsm => devtools/shared/task.js
extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett
cea8e5072a Bug 1271084 - Explicitly ignore files with specific style. r=tromey
MozReview-Commit-ID: DOvplOCJIAl
2016-05-18 12:49:23 -05:00
J. Ryan Stinnett
b13c5a9153 Bug 1271084 - Remove missing files from .eslintignore. r=tromey
MozReview-Commit-ID: 5NsTjhMbDe9
2016-05-18 12:49:23 -05:00
Ryan VanderMeulen
54c922ca84 Merge inbound to m-c. a=merge
CLOSED TREE
2016-05-18 12:02:42 -04:00
Tim Nguyen
75f63a4458 Bug 1273653 - Fix ESLint errors in devtools/client/shared/(components|redux). r=tromey
MozReview-Commit-ID: 5hY0uII6wf8
2016-05-17 23:20:14 +02:00
Patrick Brosset
e4149a2ab9 Bug 1267015 - ESLint cleanup of devtools/client/styleinspector/shared/test; r=bgrins
MozReview-Commit-ID: GKnRmlqIBxb

--HG--
extra : rebase_source : 69109deafb0af8113a31832b604208817a224dbb
2016-05-13 10:16:45 +02:00
Patrick Brosset
96dddc3634 Bug 1260630 - ESLint cleanup of devtools/client/inspector/computed/; r=bgrins
MozReview-Commit-ID: BreSVf4bPf

--HG--
extra : rebase_source : 5ff6e97ba85c5d3bcd14db42aba10e5ee0a469e9
2016-05-13 13:09:17 +02:00
Tom Tromey
439e22f050 Bug 1266826 - Turn Templater.jsm into a .js. r=jryans
MozReview-Commit-ID: 4T4YiOiU0oZ

--HG--
rename : devtools/shared/gcli/Templater.jsm => devtools/shared/gcli/templater.js
extra : transplant_source : N%7B%B7%E9%91%F7%CC%87%22%D0%1E%7BZ%05%16%ED%A3q%99F
2016-05-12 09:06:38 -06:00
Patrick Brosset
45c01647ea Bug 1264907 - Don't show the firstChild of the current selection in breadcrumbs; r=jdescottes
The breadcrumbs widget used to have a feature where it would show the first
child of the current selection even the DOM tree hadn't been expanded that
far yet.
This was to allow keyboard navigating the DOM through the breadcrumbs.
The breadcrumbs is a very rarely used widget and this code was unnecessarily
making things complex.
It was decided that this feature would be removed.
Instead, the breadcrumbs now act as simple linear elements in a toolbar and
you can keyboard navigate them with LEFT/RIGHT only. TAB/shift-TAB simply go
in/out of the breadcrumbs widget.

MozReview-Commit-ID: BmcaLnVBOBn

--HG--
extra : rebase_source : 1673a6c9da02cf8b3b542e4ce905ccb239250aa7
2016-04-15 12:03:33 +02:00
Tom Tromey
d448361566 Bug 1271709 - fix eslint-plugin-mozilla .eslintrc; r=pbro
testing/eslint-plugin-mozilla/lib/rules/.eslintrc used the obsolete
"keyword-spacing" rule.  This patch fixes that and changes the top-level
.eslintignore so that local eslint rules are now checked.

MozReview-Commit-ID: KjVLasvPKh7

--HG--
extra : transplant_source : %AB%A2g%9F%26%E4%892%29%5Bs%7E%11%A67%00v%A2I%CC
2016-05-10 11:03:54 -06:00
Patrick Brosset
7dfb735bf9 Bug 1069829 - 3 - Clean styles.js off of eslint errors; r=me
MozReview-Commit-ID: JxEJRM3KUPQ
2016-05-10 13:29:55 +02:00
Tim Nguyen
90210699e7 Bug 1271048 - Fix eslint issues in devtools/bootstrap.js. r=pbro
MozReview-Commit-ID: J5BXwB4dXhD
2016-05-10 00:15:03 +02:00
Tom Tromey
bf4a51cc20 Bug 1270203 - make css-angle eslint-clean; r=nchevobbe
MozReview-Commit-ID: IfCMc8ewLDu

--HG--
extra : transplant_source : %3F%DB%40%99I%5B%81%F4%99%9Bo%CC%3F%08%E5d%C8%11x%A7
2016-05-05 12:26:24 -06:00
Tom Tromey
b266a392fe Bug 1265787 - Add javascript CSS lexer to devtools. r=pbro
MozReview-Commit-ID: BgbACHTTMtX

--HG--
extra : transplant_source : %0B%F5%A3%AE%D8U%AB%5D%DF%D4%8A%90%21%22%0E%C6%BDW%06%88
2016-04-29 11:21:22 -06:00
Tom Tromey
71073210e9 Bug 1268974 - make css-parsing-utils eslint-clean; r=pbro
MozReview-Commit-ID: 4iPN37XMbIy
2016-05-04 07:57:33 -06:00
Carsten "Tomcat" Book
b64ae72562 Backed out changeset f54c4f5fd0ed (bug 1265787) 2016-05-04 12:27:37 +02:00
Carsten "Tomcat" Book
3db7c01bb7 Merge mozilla-central to fx-team 2016-05-04 12:01:17 +02:00
Carsten "Tomcat" Book
ad9214381b merge mozilla-inbound to mozilla-central a=merge 2016-05-04 11:54:42 +02:00
Tom Tromey
8a9f366080 Bug 1266842 - replace rgbToColorName, colorToRGBA, isValidCSSColor in devtools; r=pbro
MozReview-Commit-ID: G5Zly0HPJuv

--HG--
extra : rebase_source : 85e0afd02cd676a2a7e0855a0b4956b7b9a2ac36
2016-04-28 08:46:19 -06:00
Tom Tromey
3ab72b1e0f Bug 1266842 - move css-color.js to devtools/client/shared; r=pbro
MozReview-Commit-ID: 9zS1Y4Ape2u

--HG--
rename : devtools/shared/css-color.js => devtools/client/shared/css-color.js
rename : devtools/shared/tests/unit/test_cssColor.js => devtools/client/shared/test/unit/test_cssColor.js
extra : rebase_source : fb9efd824bd025af2208b9d860f44ec67ece3de2
2016-04-28 08:41:40 -06:00
Tom Tromey
4383c1a8b1 Bug 1265787 - add javascript CSS lexer to devtools; r=pbro
MozReview-Commit-ID: BgbACHTTMtX

--HG--
extra : transplant_source : %A3iN%27%23%04g%91%06%2CsB%24%ABA%E9%81%D2%EA%8C
2016-04-29 11:21:22 -06:00
Jarda Snajdr
266d684430 Bug 1259743 - Part 2: Make devtools/server/actors/webbrowser.js eslint-clean. r=ochameau 2016-04-28 03:54:00 -04:00
Tom Tromey
f16c510764 Bug 1267378 - fix eslint errors in css-color.js; r=miker
MozReview-Commit-ID: D1MM5Yk9IKv

--HG--
extra : amend_source : 9303a23cc67d4499567557140dacb9b74fa6da5d
2016-04-25 13:56:04 -06:00
gasolin
6935908bcd Bug 1256772 - Fix ESLint issues in devtools/client/webconsole/jsterm.js; r=linclark
MozReview-Commit-ID: 4fS6PsBGORI

--HG--
extra : transplant_source : eY%E9%C2%E4%D6%D4h%04%F0%EEFbX%8F%06%3C%C8c%7E
2016-04-07 14:43:39 +08:00
Phil
348c4c37ff Bug 1256773 - eslint issues fix for devtools/client/webconsole/panel.js. r=lclark 2016-04-06 15:35:00 +02:00
Dave Townsend
92b18b36e8 Bug 1257246: Update eslint rules for eslint 2. r=MattN
Rename the rules that ESLint 2 no longer supports to the new names. Ignore the
microformat test suite as it is external code.

MozReview-Commit-ID: BgIxFERjHp1

--HG--
extra : rebase_source : 9f02a87f9a843b427b021caa72db9eb766287151
extra : histedit_source : 954abc7e447ac6cdd36290ade7adec626f4fe4fb
2016-04-05 11:33:12 -07:00
Alexis Métaireau
88915017a0 Bug 1250104 - Import the "jsesc" library for escaping JavaScript strings. r=rnewman
--HG--
extra : rebase_source : 4aa4b917473d8a6d3ca9796c1bbb9d9d59b7b73a
2016-02-24 15:40:55 +01:00
Jan Odvarko
781ed5c343 Bug 1257173 - Make JSON viewer code eslint clean; r=linclark
MozReview-Commit-ID: LUzs6Pb4c3z

--HG--
extra : rebase_source : 72554e907dd29bb5ab60ed8b0b4c29facf1d4a85
2016-03-17 22:26:53 -07:00
Tom Tromey
fbafa60ad1 Bug 1255799 - make devtools/client/webconsole eslint-clean; r=odvarko
MozReview-Commit-ID: AnaXFFHlNLM
2016-03-16 08:16:00 +01:00
Wes Kocher
a80b3e7f67 Merge m-c to fx-team, a=merge
MozReview-Commit-ID: FyYG71q4yxf
2016-03-08 16:09:09 -08:00
Gijs Kruitbosch
ac0ad4fb40 Bug 1245649 - ignore readability JS files when running eslint, rs=implied-by-mossop
MozReview-Commit-ID: JdD35U8ZKvu
2016-03-08 17:00:47 +00:00
Myk Melez
db9a40ca42 Bug 1238079 - remove the desktop web runtime; r=fabrice,mossop,gps,jryans,jmaher,marco 2016-03-07 13:33:12 -08:00
Patrick Brosset
138604079b 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

--HG--
extra : rebase_source : d907de27c9d866af174ac8135f8317520c4d87a2
2016-03-02 16:14:16 +01:00