Commit Graph

606 Commits

Author SHA1 Message Date
Gijs Kruitbosch
f238fa0035 Bug 1508369 - add stylelint linter support to mach lint, r=Standard8,dao,linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D177477
2023-05-11 16:06:38 +00:00
Mark Banner
baa061e133 Bug 1829618 - Enable Prettier on json files (configuration changes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D176338
2023-05-09 16:14:52 +00:00
Mark Banner
dfd5830d4d Bug 1830265 - Enable ESLint and Prettier on .babel-eslint.rc.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D176637
2023-05-04 17:21:03 +00:00
Mark Banner
2d03564d1e Bug 1830265 - Tidy up .prettierignore. r=Gijs,sync-reviewers,markh
Enables Prettier for (these don't need to be excluded):
- extensions/pref/autoconfig/test/unit/autoconfig.js
- services/sync/tests/unit/prefs_test_prefs_store.js

Removes duplications where the files are already ignored in the .eslintignore section.

Re-organises the structure of the remaining parts to make it clearer why they are being excluded.

Differential Revision: https://phabricator.services.mozilla.com/D176636
2023-05-04 17:21:03 +00:00
Mark Banner
2f8c17920f Bug 1830265 - Enable Prettier and ESLint on toolkit/components/backgroundtasks/defaults. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D176634
2023-05-04 17:21:02 +00:00
Bilal
76a6a97929 Bug 1816987 - ESMified browser/components/enterprisepolicies/schemas r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D174495
2023-04-27 19:23:00 +00:00
Cosmin Sabou
c244b16815 Backed out changeset d00b4179a45b (bug 1826548) for causing bug 1826804. CLOSED TREE 2023-04-06 20:11:55 +03:00
Mark Banner
0db39111aa Bug 1826548 - Add more entries to .prettierignore. r=Gijs DONTBUILD
Unfortunately Prettier does not currently support multiple ignore files (see bug 1825508). Therefore we have to duplicate the entries from .eslintignore/Generated.txt/ThirdPartyPaths.txt for the time being.

Differential Revision: https://phabricator.services.mozilla.com/D174762
2023-04-06 15:19:39 +00:00
Mark Banner
82e49f1086 Bug 1825739 - Replace generic ESLint disable statements with specific and prettier ones in devtools. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D174225
2023-04-03 10:23:52 +00:00
Mark Banner
07446898da Bug 1823763 - Convert toolkit/components/reader to ES modules. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D173183
2023-03-23 12:11:43 +00:00
Mark Banner
0a0248d5ae Bug 1817183 - Migrate most of services/fxaccounts to ES modules. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D170061
2023-02-17 16:34:42 +00:00
Cristian Tuns
b3bf09cc0d Backed out 6 changesets (bug 1816934, bug 1817182, bug 1817179, bug 1817183) for causing dt failures in browser_jsterm_autocomplete_null.js CLOSED TREE
Backed out changeset 17d4c013ed92 (bug 1817183)
Backed out changeset cfed8d9c23f3 (bug 1817183)
Backed out changeset 62fe2f589efe (bug 1817182)
Backed out changeset 557bd773fb85 (bug 1817179)
Backed out changeset 7f8a7865868b (bug 1816934)
Backed out changeset d6c1d4c0d2a0 (bug 1816934)
2023-02-17 10:51:33 -05:00
Mark Banner
09a6d475fe Bug 1817183 - Migrate most of services/fxaccounts to ES modules. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D170061
2023-02-17 09:01:45 +00:00
Julien Wajsberg
58de75b2da Bug 1811853 - Move symbolication files to the shared/ directory r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D167846
2023-02-13 16:46:38 +00:00
Mark Banner
1a90b9c57b Bug 1811820 - Change prettier config file from json to common js format. r=cmkm,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167530
2023-01-24 22:53:55 +00:00
Nicolas Chevobbe
60a24410b8 Bug 1803360 - [devtools] Put pretty-fast library in tree. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D163560
2022-12-08 15:54:07 +00:00
Alexandre Poirot
db142838b3 Bug 1794693 - [devtools] Convert source-map jest test into mochitests. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D159116
2022-11-08 16:01:01 +00:00
Mark Hammond
cf1e2c2545 Bug 1791851 - regenerate uniffi r=teshaq,LougeniaBailey,bdk
Differential Revision: https://phabricator.services.mozilla.com/D157980
2022-10-25 20:03:22 +00:00
Mark Banner
69a9e3e717 Bug 1792341 - Migrate most of the rest of toolkit/modules/ to be system ES modules. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158451
2022-10-18 11:21:25 +00:00
Andrew McCreight
cbfad78f92 Bug 1793227, part 9 - Automated fixes for js/xpconnect/tests/browser/. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D158508
2022-10-10 22:22:02 +00:00
Andrew McCreight
c41c392332 Bug 1793227, part 6 - Automated fixes for XPCOMUtils.sys.mjs. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D158505
2022-10-10 22:22:01 +00:00
Andrew McCreight
d8c43d0ea1 Bug 1793227, part 3 - Automatic fixes for js/xpconnect/tests/chrome. r=kmag
Also change .eslintignore to cover the other directories.

This also fixes the indentation the automatic fixer messed up in a few XHTML files.

Differential Revision: https://phabricator.services.mozilla.com/D158503
2022-10-10 22:22:00 +00:00
Julian Descottes
5db63c4432 Bug 1790473 - [cdp] Convert /remote/cdp JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158297

Differential Revision: https://phabricator.services.mozilla.com/D158298
2022-09-30 11:08:09 +00:00
Julian Descottes
4a1ddfd485 Bug 1790471 - [marionette] Convert /remote/marionette JSM modules to ESM r=webdriver-reviewers,whimboo
Depends on D158295

Differential Revision: https://phabricator.services.mozilla.com/D158296
2022-09-30 11:08:08 +00:00
Julian Descottes
d1f7dbe55e Bug 1790468 - [remote] Convert /remote/shared JSM modules to ESM r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158293
2022-09-30 11:08:06 +00:00
Ted Campbell
410e8dff3f Bug 1790912 - Fix lint issues in js/ductwork/debugger. r=ochameau
When we move this out of the js/ directory, a number of lint exceptions stop
applying so we should just fix the issues now.

Differential Revision: https://phabricator.services.mozilla.com/D157521
2022-09-25 09:03:33 +00:00
Mark Striemer
16c3d7214b Bug 1788798 - Support fluent in storybook r=hjones
Depends on D156241

Differential Revision: https://phabricator.services.mozilla.com/D156244
2022-09-12 21:13:20 +00:00
Mark Banner
a49daebe0d Bug 1789249 - ESLint should ignore files listed in Generated.txt, and ESLint linter tests. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D156457
2022-09-09 18:46:38 +00:00
Butkovits Atila
e03fe088c7 Backed out changeset 44fb0e3f3843 (bug 1789249) for causing mozlint failures. CLOSED TREE 2022-09-07 11:52:01 +03:00
Mark Banner
84e57ea707 Bug 1789249 - ESLint should ignore files listed in Generated.txt, and ESLint linter tests. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D156457
2022-09-06 12:45:30 +00:00
John Bieling
24210e2c3a Bug 1764698 - Move LanguageDetector.jsm and related files to toolkit. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D151606
2022-08-23 05:59:55 +00:00
Ben Dean-Kawamura
1cf71b7095 Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-03 18:59:35 +00:00
Butkovits Atila
a8ad39a288 Backed out 6 changesets (bug 1766045) for causing build bustages. CLOSED TREE
Backed out changeset 113593df6272 (bug 1766045)
Backed out changeset f137315bb6af (bug 1766045)
Backed out changeset d86ad195a9a0 (bug 1766045)
Backed out changeset e8bc2ec40cff (bug 1766045)
Backed out changeset 2d33e41ac507 (bug 1766045)
Backed out changeset 4d5874e16302 (bug 1766045)
2022-08-03 17:40:30 +03:00
Ben Dean-Kawamura
703dbdfe3a Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-03 13:48:27 +00:00
Mark Banner
06e59b0866 Bug 1782008 - Move ESLint test paths definitions to a separate file. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D152734
2022-08-03 11:16:19 +00:00
criss
04616ca52e Backed out 2 changesets (bug 1766045) for causing Bp-hybrid failures on UniFFIGeneratedScaffolding.cpp
Backed out changeset 5708672d0e83 (bug 1766045)
Backed out changeset cc77fd5ec7a8 (bug 1766045)
2022-08-03 00:01:58 +03:00
Ben Dean-Kawamura
c1816bab45 Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-02 19:51:47 +00:00
Nicolas Chevobbe
e954c570c9 Bug 1757552 - [devtools] Generate actor-less reps stubs.r=bomsy.
This patch is introducing the machinery to automatically generate/check some
stubs used by Reps.
We're focusing on stubs that shouldn't be represented by a front as it's easier
to deal with; we should then have follow up and incremental patches for each
stubs.

Some data can't be retrieved after being serialized/deserialized (`-0`, unsafe int, …),
and in such case the associated test was modified to directly pass the object.

Differential Revision: https://phabricator.services.mozilla.com/D139933
2022-03-03 16:16:50 +00:00
Alexandre Poirot
4f6825b177 Bug 1755907 - [devtools] Enable eslint on debugger tests (except their test pages). r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139366
2022-02-23 18:38:26 +00:00
Scott
4a8e839bad Bug 1750596 - Moving save to Pocket vendors into their own bundle. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D136157
2022-01-20 21:27:44 +00:00
Csoregi Natalia
45ff0f12df Backed out changeset bb40a646b246 (bug 1750596) for failures on browser_pocket_main.js. CLOSED TREE 2022-01-19 06:22:22 +02:00
Scott
67a8bb6d9c Bug 1750596 - Moving save to Pocket vendors into their own bundle. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D136157
2022-01-19 02:03:31 +00:00
Alexandre Lissy
f1d6617d61 Bug 1749385 - Generate CrashManager.jsm from template r=gsvelto,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D136109
2022-01-18 20:32:03 +00:00
Alexandre Lissy
a9b9bae961 Bug 1726804 - Refactor PROCESS_TYPE_* from nsICrashService r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D121389
2021-11-19 14:02:56 +00:00
Alexandru Michis
2cb5b32d02 Backed out 2 changesets (bug 1726804) for causing sm bustages in geckoprocesstypes.
CLOSED TREE

Backed out changeset bf7f73fd1921 (bug 1726804)
Backed out changeset c9936f7534cb (bug 1726804)
2021-11-19 11:40:59 +02:00
Alexandre Lissy
882ec7bc7a Bug 1726804 - Refactor PROCESS_TYPE_* from nsICrashService r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D121389
2021-11-19 08:33:43 +00:00
Scott
a56ce14062 Bug 1699515 - Switching to react for Save to Pocket panels. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D128753
2021-11-11 00:06:13 +00:00
Csoregi Natalia
ea18332fb3 Backed out changeset 98e7519f8247 (bug 1699515) for causing failures due to pocket/content/panels/js/home/overlay.js. CLOSED TREE 2021-11-10 04:10:44 +02:00
Scott
6c06094621 Bug 1699515 - Switching to react for Save to Pocket panels. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D128753
2021-11-09 23:51:27 +00:00
wartmanm
54751aa56a Bug 1658238 - Autocomplete source-mapped variable names r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87117
2021-10-19 11:40:09 +00:00