Граф коммитов

69 Коммитов

Автор SHA1 Сообщение Дата
Gijs Kruitbosch b4130b15da Bug 1832765 - start linting scss across the tree in our standard config, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D178532
2023-05-30 22:41:22 +00:00
Mark Banner 12189bf738 Bug 1826062 - Upgrade Prettier to 2.8.8. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D177026
2023-05-20 12:26:52 +00:00
Mark Banner 4ee0b4f787 Bug 1826062 - Upgrade Prettier to v2.0.5. r=mossop
Also keeps 'arrowParens' as 'avoid', rather than switching to the new Prettier default of 'always'.

Differential Revision: https://phabricator.services.mozilla.com/D177018
2023-05-20 12:26:49 +00:00
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 35384ac9c9 Bug 1677562 - Remove eslint-plugin-prettier now that Prettier and ESLint are separated. r=Gijs,devtools-reviewers,ochameau
Depends on D175769

Differential Revision: https://phabricator.services.mozilla.com/D175770
2023-04-19 08:52:38 +00:00
Mark Banner 901b63a516 Bug 1801591 - Add eslint-plugin-eslint-plugin for linting our ESLint plugin rules, and upgrade most of node_modules. r=mossop
Depends on D168235

Differential Revision: https://phabricator.services.mozilla.com/D168236
2023-02-03 13:28:13 +00:00
Mark Banner 855c830d4b Bug 1802860 - Update top-level and eslint-plugin-mozilla node_modules packages. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D163793
2022-12-06 14:35:07 +00:00
Mark Banner 7ad7c7e805 Bug 1792465 - Add eslint-plugin-jsdoc and upgrade node_modules to latest versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D158150
2022-10-03 06:55:28 +00:00
lyavor c4dd970059 Bug 1709150 - Consider linter rule to make https the default for all kind of tests we add. r=Standard8,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149394
2022-09-07 08:45:12 +00:00
Mark Banner 68920ac756 Bug 1762571 - Update node_modules bundles and package-lock.json files for new node versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D147175
2022-07-07 22:09:00 +00:00
Iulian Moraru eaae7245b9 Backed out 3 changesets (bug 1762571) for causing xpcshell failures on test_trr_httpssvc_wrap.js. CLOSED TREE
Backed out changeset 9e6eb444acb4 (bug 1762571)
Backed out changeset f24051722cee (bug 1762571)
Backed out changeset 0ead2f6d0582 (bug 1762571)
2022-06-30 18:43:06 +03:00
Mark Banner f316a3e874 Bug 1762571 - Update node_modules bundles and package-lock.json files for new node versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D147175
2022-06-30 13:23:25 +00:00
Mark Banner 27daf1b0af Bug 1766268 - Update eslint-plugin-mozilla's version of estraverse to fix issues with private identifiers. r=mossop
Due to babel still requiring an old version of estraverse, this disables our setup checking for changes
to modules in the eslint-plugin-mozilla package.json. For now, we'll need to remember to ensure there
is a top-level update to go with any changes - though that normally happens anyway.

For good measure, this also updates some of the top-level modules to ensure that node_modules is re-installed for everyone.

Differential Revision: https://phabricator.services.mozilla.com/D144758
2022-04-27 15:14:35 +00:00
Mark Banner 7a084ed84c Bug 1725952 - Upgrade ESLint to v8.x. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144002
2022-04-22 11:23:30 +00:00
Ed Lee 70b90fb7c5 Bug 1553931 - Add eslint-plugin-react-hooks and enable for paths using React r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D140876
2022-03-25 18:01:21 +00:00
Mark Banner 42ff6628a7 Bug 1753652 - Update various node_modules to their latest versions. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137872
2022-02-07 17:28:47 +00:00
Frederik Braun 07077e4449 Bug 1736781 - Update eslint-plugin-no-unsanitized to version 3.2.0 r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D128988
2021-10-21 13:08:11 +00:00
Mark Banner 285d9816ed Bug 1726413 - Use mach npm install rather than plain npm when updating node_modules. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D122981
2021-08-20 07:33:33 +00:00
Mark Banner 9383f3e40e Bug 1725934 - Remove unnecessary babel plugin, and update node modules to the latest versions. r=Mardak
plugin-syntax-class-properties was supported by default in Babel 7.14.0.
This also adds top level await support in modules with the upgrade to Babel 7.15.0.

Differential Revision: https://phabricator.services.mozilla.com/D122865
2021-08-18 07:44:47 +00:00
Mark Banner 5f379eb4db Bug 1702858 - Update node modules for latest versions, remove obsolete. r=mossop
@babel/transform-flow-strip-types and eslint-plugin-flowtype are no longer required as devtools removed the uses of them in bug 1690742.

Differential Revision: https://phabricator.services.mozilla.com/D115402
2021-05-19 16:53:53 +00:00
Mark Banner e6bcef6070 Bug 1556460 - Upgrade jsdoc version to 3.6.6. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D112345
2021-04-16 16:17:26 +00:00
Mark Banner 1e592fa0f9 Bug 1704857 - Bump eslint-plugin-mozilla version numbers. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D111895
2021-04-16 16:17:26 +00:00
Mark Banner dae9d6efad Bug 1498604 - Make './mach doc' use jsdoc installed into node_modules rather than the system. r=mossop,ahal
Differential Revision: https://phabricator.services.mozilla.com/D111652
2021-04-14 13:35:20 +00:00
Alexandru Michis a2ac402751 Backed out changeset 53d4fb9f562f (bug 1498604) for causing doc generate failures.
CLOSED TREE
2021-04-14 02:22:56 +03:00
Mark Banner 6bdee38462 Bug 1498604 - Make './mach doc' use jsdoc installed into node_modules rather than the system. r=mossop,ahal
Differential Revision: https://phabricator.services.mozilla.com/D111652
2021-04-13 19:59:37 +00:00
Mark Banner c3d0fbb56a Bug 1702166 - Update ESLint, Babel and associated modules to the latest versions. r=mossop,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110606
2021-04-04 08:05:39 +00:00
Gijs Kruitbosch 1aa2c4d5db Bug 1668274 - update eslint, eslint-plugin-no-unsanitized and mocha to allow use of logical assignment operators, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D91933
2020-10-02 18:00:40 +00:00
Duncan Dean d99484e5ff Bug 1620162 - Upgrade eslint-plugin-jest and fix new lint errors. r=bomsy,Standard8
Currently the `jest/no-standalone-expect` rule needs to be disabled for `jest-in-case` cases blocks as it is not compatible.

Differential Revision: https://phabricator.services.mozilla.com/D87184
2020-08-20 08:52:42 +00:00
Mark Banner def8aa427a Bug 1620537 - Upgrade to ESLint 7.5.0, remove now unnecessary Babel plugins. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D84820
2020-07-24 21:37:12 +00:00
Mark Banner 56b100bc3a Bug 1653195 - Update eslint-plugin-mozilla's eslint-visitor-keys to be the same as the top-level include. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D84136
2020-07-20 12:33:56 +00:00
Mark Banner a5ae60cdd9 Bug 1652130 - Switch the Mozilla eslint parser to use multi-ini. r=mossop
Depends on D83176

Differential Revision: https://phabricator.services.mozilla.com/D83177
2020-07-13 18:05:18 +00:00
Dave Townsend 6ed37285b4 Bug 1622717: When parsing an AST allow the chosen parser to override the default scope manager and visitor keys. r=Standard8
There appears to be a bug in babel-eslint where it still uses the old
`ExperimentalSpreadProperty` and `ExperimentalRestProperty` node types when
babel itself (and hence the AST visitor keys) have switched to `SpreadElement`
and `RestElement`. I suspect there isn't much point in filing a babel-eslint
issue for this, they are currently in the process of working on v11 which does
fix the issue but is currently only available as a beta release.

There are three alternatives:

1. Use the beta babel-eslint.
2. Hack the visitor keys to include the old node types.
3. Traverse the AST changing the nodes from the old types to the new types.

Using a beta version is probably not a great idea so this patch does 2 which is
the simplest of the other options. It does have the drawback however that if
any eslint rules we use rely on the new node type names they will fail to work.

Differential Revision: https://phabricator.services.mozilla.com/D66998

--HG--
extra : moz-landing-system : lando
2020-03-23 12:58:28 +00:00
Dave Townsend 8aefbf2bdc Bug 1617959: Switch to the babel-eslint parser and turn on support for optional chaining and nullish coalescing operator syntaxes. r=Standard8
The babel-eslint parser defaults to assuming all scripts are modules. Although
we're moving in that direction it seems reasonable to set the default as regular
scripts for now. All the places that were previously overriding the parser are
already specifying the sourceType in their eslint configs.

I chose to put the babel config in a file that babel itself won't look to avoid
the risk of this config impacting the use of babel elsewhere in the tree.

Differential Revision: https://phabricator.services.mozilla.com/D66127

--HG--
extra : moz-landing-system : lando
2020-03-13 19:15:11 +00:00
Ed Lee 8a70e001ee Bug 1620556 - Update Prettier to 1.19.1. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D66129

--HG--
extra : moz-landing-system : lando
2020-03-13 23:39:00 +00:00
Mark Banner c33838afba Bug 1620218 - Update Prettier to 1.18.2 and other ESLint modules to the latest versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D65510

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:23 +00:00
Mark Banner 793a87d40a Bug 1607172 - Update ESLint to the latest version and use ignorePatterns to ignore paths listed in ThirdPartyPaths.txt. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D59691

--HG--
extra : moz-landing-system : lando
2020-01-21 20:46:06 +00:00
Mihai Alexandru Michis 2dab66d06e Backed out 9 changesets (bug 1607172, bug 1609998, bug 1608799) for causing xpcshell failures in test_parser.js
CLOSED TREE

Backed out changeset 7753083b67dd (bug 1609998)
Backed out changeset e6f5aac734ab (bug 1608799)
Backed out changeset 90ea35966b73 (bug 1608799)
Backed out changeset 6fafa451b3f9 (bug 1608799)
Backed out changeset e07a4aea2ae1 (bug 1608799)
Backed out changeset d69d6dfdccad (bug 1607172)
Backed out changeset 93023b1b6153 (bug 1607172)
Backed out changeset 99ce7a56080e (bug 1607172)
Backed out changeset 20aa5934c785 (bug 1607172)
2020-01-21 21:44:03 +02:00
Mark Banner 96709101c1 Bug 1607172 - Update ESLint to the latest version and use ignorePatterns to ignore paths listed in ThirdPartyPaths.txt. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D59691

--HG--
extra : moz-landing-system : lando
2020-01-21 17:10:10 +00:00
Mark Banner 06d4bda4b5 Bug 1605231 - Update bundled node_modules for the builders to sync with the yarn update. r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D58205

--HG--
extra : moz-landing-system : lando
2019-12-24 23:17:12 +00:00
Jason Laster ec444c0fc8 Bug 1605231 - update Yarn to 1.21.1. r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D57880

--HG--
extra : moz-landing-system : lando
2019-12-19 23:31:07 +00:00
Mark Banner 676f82a489 Bug 1540982 - Upgrade to ESLint 6.2.2 and switch to ECMA version 11 (BigInt support, Dynamic imports). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D43590

--HG--
extra : moz-landing-system : lando
2019-08-27 14:51:29 +00:00
Mark Banner a05a7163d5 Bug 1551829 - Upgrade to ESLint 6.1.0. r=mossop
This picks up various improvements, especially to how configurations are handled and some new rules.

Differential Revision: https://phabricator.services.mozilla.com/D37271

--HG--
extra : moz-landing-system : lando
2019-08-21 19:08:44 +00:00
Mark Banner 8bae6a36eb Bug 1567134 - Update the node modules packages for the builders. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38473

--HG--
extra : moz-landing-system : lando
2019-07-18 13:10:40 +00:00
Nicolas Chevobbe fe2f310301 Bug 1564138 - Fix DevTools PropTypes errors when updating eslint. r=Ola.
Differential Revision: https://phabricator.services.mozilla.com/D38093

--HG--
extra : moz-landing-system : lando
2019-07-17 10:35:44 +00:00
Mark Banner 3561e3197c Bug 1566043 - Update npm dependencies for ESLint. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38070

--HG--
extra : moz-landing-system : lando
2019-07-16 17:52:11 +00:00
yulia 5f77a853c5 Bug 1494796 - Removing threadClient specifics from DebuggerClient Special case resume; r=jdescottes,jlast
The resume case is much more complex than the other events, because we do an
unsafeSynchronize to send an unsolicited pause. In the old system, the resume response would have
been ignored, but that is no longer the case. With the new system, we do not want to send a response
to a resume action if it did not come from the UI. This also update the debugger panel code to
accept a resume.

Differential Revision: https://phabricator.services.mozilla.com/D32697

--HG--
extra : moz-landing-system : lando
2019-06-14 04:24:17 +00:00
Narcis Beleuzu 7d018750a1 Backed out 13 changesets (bug 1494796) for dt failures on browser_dbg-navigation.js . CLOSED TREE
Backed out changeset 5db908b26d50 (bug 1494796)
Backed out changeset c48f00f0df72 (bug 1494796)
Backed out changeset 591453b88e8b (bug 1494796)
Backed out changeset a14e820311bc (bug 1494796)
Backed out changeset 0e214d450b35 (bug 1494796)
Backed out changeset 1a4ab8b35a85 (bug 1494796)
Backed out changeset fe1559f5f1d4 (bug 1494796)
Backed out changeset 35d967de4223 (bug 1494796)
Backed out changeset 1d21a55cae15 (bug 1494796)
Backed out changeset 33eec873a43e (bug 1494796)
Backed out changeset 25e69c21dc2e (bug 1494796)
Backed out changeset b900d41c8ae8 (bug 1494796)
Backed out changeset c2a034e34fa6 (bug 1494796)
2019-06-14 07:20:42 +03:00
yulia 607a83590c Bug 1494796 - Removing threadClient specifics from DebuggerClient Special case resume; r=jdescottes,jlast
The resume case is much more complex than the other events, because we do an
unsafeSynchronize to send an unsolicited pause. In the old system, the resume response would have
been ignored, but that is no longer the case. With the new system, we do not want to send a response
to a resume action if it did not come from the UI. This also update the debugger panel code to
accept a resume.

Differential Revision: https://phabricator.services.mozilla.com/D32697

--HG--
extra : moz-landing-system : lando
2019-06-14 00:18:17 +00:00
Andrei Oprea 6c4e640dae Bug 1553926 - Add fetch-options eslint plugin to mozilla central r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D32723

--HG--
extra : moz-landing-system : lando
2019-06-06 11:31:20 +00:00
Victor Porof 35ecad1c2c Bug 1551218 - Part 1: Enable running top-level eslint for the devtools debugger, r=Standard8,jlast
Differential Revision: https://phabricator.services.mozilla.com/D30926

--HG--
extra : moz-landing-system : lando
2019-05-17 15:50:29 +00:00