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

84 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner fc492ced11 Bug 1464007 - Specify the 'html' plugin in .eslintrc.js by default for better editor integration. r=mossop
This moves the html plugin enabling from the ./mach command line to the configuration, which means editors can pick this up automatically.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 21:33:34 +00:00
avneeshsinghal 6b007e9918 Bug 1556844 - Enable more ESLint rules for netwerk, (auto & manual) fixes & format changes , r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D33992

--HG--
extra : moz-landing-system : lando
2019-06-21 20:13:40 +00:00
Mark Banner 201255ab84 Bug 1558485 - Turn on ESLint for all of dom/ disabling most of the failing rules. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34761

--HG--
extra : moz-landing-system : lando
2019-06-13 20:21:46 +00:00
Mark Banner a4e4befb74 Bug 1513639 - Re-enable ESLint rule mozilla/reject-importGlobalProperties for dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D34578

--HG--
extra : moz-landing-system : lando
2019-06-12 19:14:07 +00:00
Mark Banner c270f7d551 Bug 1554224 - Enable some ESLint rules for more of layout/. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D32496

--HG--
extra : moz-landing-system : lando
2019-05-29 10:50:49 +00:00
Mark Banner 0ad6e198b0 Bug 1554169 - Enable some ESLint rules for more of netwerk/. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32495

--HG--
extra : moz-landing-system : lando
2019-05-29 10:50:37 +00:00
Mark Banner 99101f0542 Bug 1554142 - Enable most ESLint rules for image/. r=aosmond
Depends on D32450

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

--HG--
extra : moz-landing-system : lando
2019-05-24 17:34:09 +00:00
Mark Banner 6971980f49 Bug 1554121 - Enable most ESLint rules for extensions/permissions, extensions/spellcheck and extensions/universalchardet. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32450

--HG--
extra : moz-landing-system : lando
2019-05-24 17:17:02 +00:00
Ian Moody ac18aebd72 Bug 1544286 - xpcom/ manual ESLint no-throw-literal fixes. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D27451

--HG--
extra : moz-landing-system : lando
2019-04-16 15:02:10 +00:00
Ian Moody ced8871783 Bug 1544285 - tools/ automated ESLint no-throw-literal fixes. r=dbaron
Result of running:
$ mach eslint -funix tools/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-04-16 15:02:05 +00:00
Ian Moody 56d2ed1a23 Bug 1544284 - toolkit/ manual ESLint no-throw-literal fixes. r=Standard8
Includes an otherwise-automated change to test_jsctypes.js that required an
expectation change in test_ctypes.xul.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 19:30:27 +00:00
Ian Moody 24160ab0c5 Bug 1541025 - testing/ manual ESLint no-throw-literal fixes. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D25759

--HG--
extra : moz-landing-system : lando
2019-04-02 13:42:22 +00:00
Ian Moody 3e10462c9e Bug 1541024 - parser/ automated ESLint no-throw-literal fixes. r=hsivonen
Result of running:
$ mach eslint -funix parser/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-04-05 11:31:01 +00:00
Ian Moody e6abe56fc4 Bug 1539177 - netwerk/ manual ESLint no-throw-literal fixes. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D25653

--HG--
extra : moz-landing-system : lando
2019-04-02 13:33:42 +00:00
Ian Moody 17422d41ac Bug 1539176 - modules/ manual ESLint no-throw-literal fixes. r=rstrong
Differential Revision: https://phabricator.services.mozilla.com/D25651

--HG--
extra : moz-landing-system : lando
2019-04-02 13:41:10 +00:00
Mark Banner 53b3788bba Bug 1415265 - Implement a central configuration for setting ESLint environments for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23849

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:02 +00:00
Ian Moody 50dc489a10 Bug 1538766 - mobile/ manual ESLint no-throw-literal fixes. r=petru
Differential Revision: https://phabricator.services.mozilla.com/D24732

--HG--
extra : moz-landing-system : lando
2019-03-26 08:29:54 +00:00
Ian Moody c75e259e88 Bug 1538764 - gfx/ manual ESLint no-throw-literal fixes. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D24730

--HG--
extra : moz-landing-system : lando
2019-03-25 19:24:47 +00:00
Ian Moody 99b846b642 Bug 1537776 - dom/ manual ESLint no-throw-literal fixes. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D24370

--HG--
extra : moz-landing-system : lando
2019-03-25 16:49:03 +00:00
Ian Moody 3e2a03dd32 Bug 1536659 - docshell/ manual ESLint no-throw-literal fixes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D24368

--HG--
extra : moz-landing-system : lando
2019-03-21 22:40:36 +00:00
Ian Moody 7f284be66e Bug 1536653 - browser/ manual ESLint no-throw-literal fixes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D24111

--HG--
extra : moz-landing-system : lando
2019-03-20 10:15:03 +00:00
Ian Moody 4bb3237beb Bug 1536648 - accessible/ manual ESLint no-throw-literal fixes. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D24107

--HG--
extra : moz-landing-system : lando
2019-03-20 00:23:17 +00:00
Ian Moody 167f623a3e Bug 1246594 - Enable ESLint rule no-throw-literal by default. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24088

--HG--
extra : moz-landing-system : lando
2019-03-19 22:02:42 +00:00
Mark Banner ce668e4afd Bug 1515942 - Enable ESLint for gfx/ (manual fixes). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D15206

--HG--
extra : moz-landing-system : lando
2018-12-27 09:45:01 +00:00
Mark Banner a60bf34a68 Bug 1513636 - Temporarily turn off ESlint rule mozilla/reject-importGlobalProperties for dom/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D14292

--HG--
extra : moz-landing-system : lando
2018-12-12 19:04:35 +00:00
Mark Banner 7d7844c8d5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (setup ESLint). r=mossop
Depends on D8391

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

--HG--
extra : moz-landing-system : lando
2018-10-19 08:46:31 +00:00
Mark Banner afb520e82a Bug 1486739 - Enable ESLint rule comma-dangle for browser/, services/, taskcluster/ and toolkit/ directories. r=mossop
Enable globally by default by blacklist directories outside of the ones we're enabling. Remove now unnecessary existing configurations.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 06:06:08 +00:00
Mark Banner 21236ee00f Bug 1481932 - Fully enable ESLint rule mozilla/reject-requires-await. r=mossop
MozReview-Commit-ID: 7pYfD6Ax5VX

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

--HG--
extra : moz-landing-system : lando
2018-08-11 07:27:35 +00:00
Julian Descottes 9f859ee6b8 Bug 1436303 - Enable mozilla/no-define-cc-etc for some DevTools files;r=ochameau,standard8
MozReview-Commit-ID: IbSt6lAhOYt

--HG--
extra : rebase_source : 61b562240f83da0ec15e584cd0e965466b6be4b1
2018-06-08 16:46:59 +02:00
Mark Banner fe1b5d201f Bug 1466497 - Enable ESLint rule require-expected-throws-or-rejects for storage/test/unit. r=mak
MozReview-Commit-ID: KZNpShBcfjJ

--HG--
extra : rebase_source : 8e11f26fe9d713bfc17e97f0fb4871bd9f3b0bad
2018-06-01 14:03:20 +01:00
Mark Banner 7fcdf73fc3 Bug 1466497 - Enable ESLint rule require-expected-throws-or-rejects for head_devtools_inspector_sidebar.js. r=jdescottes
MozReview-Commit-ID: LnOPs92HNPK

--HG--
extra : rebase_source : 24c68cfd55b40d942bbaf56217c9f1aec7151769
2018-06-01 12:49:41 +01:00
Mark Banner 087fb7a351 Bug 1465762 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/**/extensions. r=aswan
MozReview-Commit-ID: 5pS6RHs0naW

--HG--
extra : rebase_source : 23704b62cfccef6b43ce08657116398cbfb9beee
2018-05-31 13:45:44 +01:00
Narcis Beleuzu 08e410f7c9 Backed out changeset 6630148c9bea (bug 1465762) for xpcshell failures on test_ext_schemas_async.js. CLOSED TREE 2018-06-01 12:32:24 +03:00
Mark Banner ba6c2dc836 Bug 1465762 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/**/extensions. r=aswan
MozReview-Commit-ID: 5pS6RHs0naW

--HG--
extra : rebase_source : 1859cf05dc269ef6873e0836f1f855e8ce1e9fed
2018-05-31 13:45:44 +01:00
Mark Banner dd6cb31203 Bug 1465530 - Enable ESLint rule require-expected-throws-or-rejects for testing/marionette/. r=ato
MozReview-Commit-ID: 2CM4x0vUXbC

--HG--
extra : rebase_source : 8b4fb90744b780c42359de173420e699e6d2dd73
2018-05-30 17:35:12 +01:00
Mark Banner 7b90b63d69 Bug 1465385 - Enable ESLint rule require-expected-throws-or-rejects for browser/. r=MattN
MozReview-Commit-ID: GoVFNM7CFDu

--HG--
extra : rebase_source : f1e9bfdaa1396b2ce27ee499fc547f239ca132a9
2018-05-30 11:50:45 +01:00
Mark Banner 2faa59b5ca Bug 1463673 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/. r=mossop
MozReview-Commit-ID: AWqIwOIZsMa

--HG--
extra : rebase_source : 8e70a0ca689989b2224b334e6d30de0acb3a27f3
2018-05-22 20:52:49 +01:00
Mark Banner 127c1ce9e9 Bug 1463499 - Enable ESLint rule require-expected-throws-or-rejects for services/. r=markh
MozReview-Commit-ID: LBGpRrw3zTx

--HG--
extra : rebase_source : 28353d39dd495114d987df36fd0ea1bd10ede1a3
2018-05-16 19:06:24 +01:00
Mark Banner f692609ef4 Bug 1461997 - Add an ESLint rule to ensure that Assert.rejects is preceeded by await. r=mossop
MozReview-Commit-ID: kVrHRIi9l6

--HG--
extra : rebase_source : affa22c03c3d0fafc11d6fb62fed272e289802dd
2018-05-16 21:04:13 +01:00
Mark Banner 55d1e986ea Bug 1461997 - Enable ESLint rule mozilla/require-expected-throws-or-rejects for browser/components. r=Gijs
MozReview-Commit-ID: JXqwIyF6v6k

--HG--
extra : rebase_source : 2220610f8facc9096c4427ff543f5fc31e6ce7b0
2018-05-16 20:23:06 +01:00
Mark Banner 0237d1df76 Bug 1461997 - Create a rule to prevent usages of Assert.throws/rejects without an 'expected' argument. r=mossop
MozReview-Commit-ID: 979uJQUjybl

--HG--
extra : rebase_source : 1e0cb11ac28e35391c92a06bbd5894f7fc507baa
2018-04-09 18:54:13 +01:00
Mark Banner fde1cad4f2 Bug 1461966 - Enable ESLint rule mozilla/use-services for extensions/pref. r=mkaply
MozReview-Commit-ID: 77pSaX70zdJ

--HG--
extra : rebase_source : 5889808b650902f06e0a7d911fd1d23313247217
2018-05-16 14:39:29 +01:00
Mark Banner a32bc883e7 Bug 1434446 - Enable no-unused-vars for global scope on jsm files in browser/. r=mossop
MozReview-Commit-ID: ERT1Fili25d

--HG--
extra : rebase_source : c62ad4e97fc5da7c59cbb03ba08928f7bbe5be6b
2018-03-01 20:06:06 +00:00
Mark Banner b78260f4b8 Bug 1439831 - Enable ESLint rule mozilla/use-services for mobile/android. r=nechen
MozReview-Commit-ID: 3MuRD78hMuE

--HG--
extra : rebase_source : 772d31d98af3c5204b4000903a5e5e9fecc9dc52
2018-02-21 08:57:28 +00:00
Florian Quèze 8922be9c58 Bug 1433175 - enable the use-cc-etc eslint rule, r=Standard8. 2018-02-28 18:51:35 +01:00
Mark Banner 2e4db142aa Bug 1440761 - Enable no-unused-vars for global scope on jsm files in toolkit/. r=mossop
MozReview-Commit-ID: 7Okqmw5dBcL

--HG--
extra : rebase_source : 6fff67e5e4bf483e6903a68a713d0b7d6c659d3b
2018-02-23 19:25:59 +00:00
Mark Banner 6afe18b30a Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
MozReview-Commit-ID: HmliR8iNRDq

--HG--
extra : rebase_source : 483ae0b54b9e781cceac2accdfb2255d725ace6a
2018-02-22 16:55:36 +00:00
Mark Banner 4bc9f77582 Bug 1440718 - Enable no-unused-vars for global scope on jsm files in services/sync/. r=kitcambridge
MozReview-Commit-ID: 77z0qScZw2P

--HG--
extra : rebase_source : a2fa7688e72e225bc54a047c2e46822f13af21f2
2018-02-23 17:05:05 +00:00
Mark Banner 3e6b2c9400 Bug 1440711 - Enable no-unused-vars for global scope on jsm files in accessible/. r=surkov
MozReview-Commit-ID: DMsHpliLTOi

--HG--
extra : rebase_source : 528581974ca2e37e139be1a7ac354ce80eef9464
2018-02-23 16:50:43 +00:00
Mark Banner 01319d9d04 Bug 1437584 - Enable ESLint rule mozilla/use-services for testing/. r=jmaher
MozReview-Commit-ID: DMkgj5UAId4

--HG--
extra : rebase_source : 155f657e68f04850e878535afdb1421933b4a13b
2018-02-12 17:10:00 +00:00