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

43 Коммитов

Автор SHA1 Сообщение Дата
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
Mihai Alexandru Michis 766636073f Backed out changeset 8952fe75cb7a (bug 1551218) for causing linting failures. CLOSED TREE 2019-05-17 16:37:40 +03:00
Victor Porof e4c63108e7 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 12:47:41 +00:00
Mark Banner 8b27241809 Bug 1536589 - Update ESLint and associated modules. r=mossop
Depends on D26543

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

--HG--
extra : moz-landing-system : lando
2019-04-08 20:06:38 +00:00
Mark Banner bb846083ae Bug 1530451 - Add debugger eslint plugins to the global package.json. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D26542

--HG--
extra : moz-landing-system : lando
2019-04-08 20:07:22 +00:00
Mark Banner 73f1f5f35d Bug 1517707. Update ESLint related modules to latest versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D15715

--HG--
extra : moz-landing-system : lando
2019-01-04 16:44:49 +00:00
Mark Banner 21632ba53b Bug 1495397 - Update mozilla-central's package.json for being more generic, and move existing ESLint modules to dev dependencies. r=firefox-build-system-reviewers,nalexander
packge-lock.json and tools/lint/eslint/manifest.tt were generated automatically by running tools/lint/eslint/setup.sh, as per previous revisions to package.json.

I've intentionally kept the package.json file simple for now, we can extend it as we get the requirements defined for vendoring new node modules.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 17:28:45 +00:00
Mark Banner 9b1b5e2821 Bug 1493654 - Upgrade eslint-plugin-html to 4.0.6 to pick up performance fix. r=mossop
Also upgrade eslint and eslint-plugin-react whilst we're here.

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

--HG--
extra : moz-landing-system : lando
2018-09-24 15:33:56 +00:00
Mark Banner 226dbd7bdc Bug 1456078 - Upgrade ESLint to version 5.3.0, and eslint-plugin-html to 4.0.5. r=mossop
MozReview-Commit-ID: 7yvvXKxYodA

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

--HG--
extra : moz-landing-system : lando
2018-08-07 14:46:19 +00:00
Mark Banner 42fb2abfdb Bug 1471540 - Update eslint-plugin-react to 7.10.0. r=ahal
MozReview-Commit-ID: Bg4ayKKxDg1

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

--HG--
extra : moz-landing-system : lando
2018-07-25 18:09:41 +00:00
Mark Banner 25a14e80df Bug 1475504 - Don't change package-lock.json when running 'npm install' due to Lint setup. r=ahal
This prevents accidental changes to package-lock.json when ESLint's setup runs 'npm install'.

Also revert the recent accidental changes to package-lock.json.

MozReview-Commit-ID: 21ebhOlQcMv

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

--HG--
extra : moz-landing-system : lando
2018-07-13 15:53:32 +00:00
Andrea Marchesini ec2dbec62a Bug 1461921 - Block storage access for third-parties on the tracking protection list - part 2 - First tests for DOM storages, r=ehsan 2018-06-20 13:38:21 -04:00
Mark Banner 037b733636 Bug 1456762 - Add parsing of HTML files to ESLint to discover their script tags and the globals that are imported. r=mossop
MozReview-Commit-ID: 6jiEbZnyv6e

Differential Revision: https://phabricator.services.mozilla.com/D1643
2018-06-16 08:20:38 +00:00
Sam Foster 2257b7f8ce Bug 1429260 - Add tests to verify handling of payment detail properties it is possible to updateWith. r=jaws
* Check update of displayItems, additionalDisplay items and total (via a modifier.)

MozReview-Commit-ID: B4L7Ev9yR2f

--HG--
extra : rebase_source : 98fb71b7a71f9f30106c78bd35b4f10ff8f179b6
2018-05-24 17:34:42 -07:00
Ryan VanderMeulen c235c886ba Bug 1459455 - Revert accidentally-landed package-lock.json changes. 2018-05-29 22:43:42 -04:00
Tim Nguyen e328cc3fd4 Bug 1459455 - Allow changing the tab separator color. r=jaws
MozReview-Commit-ID: 6DNHHTTw7ff

--HG--
extra : rebase_source : 59be5237ccc32387029191c03a60337d55b905ee
2018-05-30 04:34:51 +02:00
Andrea Marchesini de738c53ef Bug 1461426 - IPCBlobInputStreamParent should be sent as underlying stream to the content - unit test, r=rpl 2018-05-29 20:02:03 +02:00
Mark Banner 1933dd3a48 Bug 1464100 - Update eslint-plugin-no-unsanitized to v3.0.2. r=ahal
MozReview-Commit-ID: 3u1FeN5wVwf

--HG--
extra : rebase_source : ca88ffff457fa01148189bb317bd09af06695df5
2018-05-24 16:54:54 +01:00
Michael Froman d5fb082c26 Bug 1374699 - fixing compiler warnings for nrappkit. r=drno
MozReview-Commit-ID: CAQQvheP1Wg

--HG--
extra : rebase_source : a5c5857c84339587f6197be95534700d1aca7942
extra : source : ac789983242b806ceeeca4569ac1f5ddfcbaaba2
2017-09-21 08:56:34 -05:00
Mark Banner 55b2589eab Bug 1456085 - Increase ESLint's minimum node & npm requirements to 8.9.1 & 5.5.1 respectively. r=ahal
Also use package-lock.json rather than npm-shrinkwrap.json as we no longer need to support the latter.

MozReview-Commit-ID: 4yaFcElvhF7

--HG--
rename : npm-shrinkwrap.json => package-lock.json
extra : rebase_source : ae6fcadd8b4a5213fb94cd6426909c2efebfb6a1
2018-05-08 09:49:25 +01:00