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

33 Коммитов

Автор SHA1 Сообщение Дата
Geoff Lankow 9cd4f074a8 Port bug 1733549 - Remove uses of ChromeUtils.import(..., null) in enterprise policy code. rs=bustage-fix
Port of https://hg.mozilla.org/mozilla-central/rev/c4f862d825ca.

--HG--
extra : amend_source : 7b9b3f495a714912064b560bfed84cd7fdf53cf5
extra : histedit_source : ee97f19bbbf9fd5c1d1be471210d7c8704f3b965
2021-11-08 11:18:49 +13:00
Geoff Lankow 1a60517efa Bug 1729638 - Stop applying browser-test rules to JSMs in test directories. r=mkmelin
I broke the tests with the first patch for this bug because ESLint thought that Services was defined where it wasn't. This is because we apply a special set of rules to Mochitests, but those rules shouldn't also apply to JSMs in Mochitest directories.

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

--HG--
extra : rebase_source : a4c6d3bcb2bd71ecdd2d2e01be546c470e8ac8c7
2021-09-09 14:27:19 +12:00
Geoff Lankow e03570af7e Bug 1721526 - Update test paths in ESLint config. rs=me 2021-07-21 16:43:35 +12:00
Magnus Melin 9afd700403 Bug 1702166 - adjust comm-central for "Update ESLint, Babel and associated modules to the latest versions". rs=bustage-fix DONTBUILD
--HG--
extra : rebase_source : fb75af2ba5c3a5c7117621072cd089e3271c3099
2021-04-05 12:41:39 +03:00
Geoff Lankow 3375e3259f Bug 1692419 - Port bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import'. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D104972

--HG--
extra : amend_source : b43b05b6c5193f7170d1a5722ce3ed77e3a807b0
2021-02-12 11:54:09 +02:00
Mark Banner f71dcf35c6 Bug 1660706 - Add a mochitest performance test to ensure modules are not loaded too early on startup. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D87975

--HG--
extra : moz-landing-system : lando
2020-08-26 10:22:36 +00:00
Geoff Lankow e9c232ba47 Bug 1639814 - Port bug 1617959: Switch to the babel-eslint parser. r=mkmelin
--HG--
extra : rebase_source : a171c0aa3f57abe0cf5c01f3d11beca0e979c99c
extra : histedit_source : 502a016f84ca92275fb8240e4215530418565509
2020-05-21 20:15:08 +12:00
Geoff Lankow 63baa60279 Bug 1616608 - Remove separate ESLint rules in calendar. r=mkmelin,pmorris,fallen
--HG--
extra : rebase_source : 5042b09cb7b5a489b73252a65c64fabc0b8d7eb3
extra : histedit_source : 4a89a83e1f054e061bec9f7a1fb78c1925c0a728
2020-02-20 11:24:47 +13:00
Geoff Lankow 774dc83e56 Bug 1616608 - Remove ESLint rules that conflict with Prettier. r=mkmelin
--HG--
extra : rebase_source : 008202a34cf60f1b439c48ad37e22a54e8ff0203
extra : histedit_source : 6cb6b1eb015e49c663b4f1eb6b846d54c21ee7dc
2020-02-20 11:14:59 +13:00
Geoff Lankow 0add81ce54 Bug 1594964 - Unify linting rules for test directories. r=pmorris
--HG--
rename : mailnews/mime/jsmime/test/data/base64-1 => mailnews/mime/jsmime/test/unit/data/base64-1
rename : mailnews/mime/jsmime/test/data/base64-2 => mailnews/mime/jsmime/test/unit/data/base64-2
rename : mailnews/mime/jsmime/test/data/basic1 => mailnews/mime/jsmime/test/unit/data/basic1
rename : mailnews/mime/jsmime/test/data/bug505221 => mailnews/mime/jsmime/test/unit/data/bug505221
rename : mailnews/mime/jsmime/test/data/bugmail11 => mailnews/mime/jsmime/test/unit/data/bugmail11
rename : mailnews/mime/jsmime/test/data/charsets => mailnews/mime/jsmime/test/unit/data/charsets
rename : mailnews/mime/jsmime/test/data/message-encoded => mailnews/mime/jsmime/test/unit/data/message-encoded
rename : mailnews/mime/jsmime/test/data/mime-torture => mailnews/mime/jsmime/test/unit/data/mime-torture
rename : mailnews/mime/jsmime/test/data/multipart-base64-1 => mailnews/mime/jsmime/test/unit/data/multipart-base64-1
rename : mailnews/mime/jsmime/test/data/multipart-base64-2 => mailnews/mime/jsmime/test/unit/data/multipart-base64-2
rename : mailnews/mime/jsmime/test/data/multipart-base64-3 => mailnews/mime/jsmime/test/unit/data/multipart-base64-3
rename : mailnews/mime/jsmime/test/data/multipart-complex1 => mailnews/mime/jsmime/test/unit/data/multipart-complex1
rename : mailnews/mime/jsmime/test/data/multipart-complex2 => mailnews/mime/jsmime/test/unit/data/multipart-complex2
rename : mailnews/mime/jsmime/test/data/multipart1 => mailnews/mime/jsmime/test/unit/data/multipart1
rename : mailnews/mime/jsmime/test/data/multipart2 => mailnews/mime/jsmime/test/unit/data/multipart2
rename : mailnews/mime/jsmime/test/data/multipart3 => mailnews/mime/jsmime/test/unit/data/multipart3
rename : mailnews/mime/jsmime/test/data/multipart4 => mailnews/mime/jsmime/test/unit/data/multipart4
rename : mailnews/mime/jsmime/test/data/multipartmalt-detach => mailnews/mime/jsmime/test/unit/data/multipartmalt-detach
rename : mailnews/mime/jsmime/test/data/shift-jis-image => mailnews/mime/jsmime/test/unit/data/shift-jis-image
rename : mailnews/mime/jsmime/test/head_xpcshell_glue.js => mailnews/mime/jsmime/test/unit/head_xpcshell_glue.js
rename : mailnews/mime/jsmime/test/mock_date.js => mailnews/mime/jsmime/test/unit/mock_date.js
rename : mailnews/mime/jsmime/test/test_custom_headers.js => mailnews/mime/jsmime/test/unit/test_custom_headers.js
rename : mailnews/mime/jsmime/test/test_header.js => mailnews/mime/jsmime/test/unit/test_header.js
rename : mailnews/mime/jsmime/test/test_header_emitter.js => mailnews/mime/jsmime/test/unit/test_header_emitter.js
rename : mailnews/mime/jsmime/test/test_mime_tree.js => mailnews/mime/jsmime/test/unit/test_mime_tree.js
rename : mailnews/mime/jsmime/test/test_structured_header_emitters.js => mailnews/mime/jsmime/test/unit/test_structured_header_emitters.js
rename : mailnews/mime/jsmime/test/test_structured_headers.js => mailnews/mime/jsmime/test/unit/test_structured_headers.js
rename : mailnews/mime/jsmime/test/xpcshell.ini => mailnews/mime/jsmime/test/unit/xpcshell.ini
2019-11-05 16:48:02 +13:00
Geoff Lankow 80d89968b8 Bug 1591009 - Restore overridden linting configuration for tests. r=mkmelin 2019-10-24 22:12:17 +13:00
Geoff Lankow 5b81edc94e No bug - Disable mozilla/prefer-boolean-length-check ESLint rule; rs=me 2019-10-17 21:45:54 +13:00
Geoff Lankow 68c44d3246 Bug 1585162 - Convert calendar Mozmill tests to Mochitest; r=pmorris
--HG--
rename : calendar/test/mozmill/testBasicFunctionality.js => calendar/test/browser/browser_basicFunctionality.js
rename : calendar/test/mozmill/testLocalICS.js => calendar/test/browser/browser_localICS.js
rename : calendar/test/mozmill/testTimezones.js => calendar/test/browser/browser_timezones.js
rename : calendar/test/mozmill/testTodayPane.js => calendar/test/browser/browser_todayPane.js
rename : calendar/test/browser/browser.ini => calendar/test/browser/eventDialog/browser.ini
rename : calendar/test/mozmill/eventDialog/testAlarmDialog.js => calendar/test/browser/eventDialog/browser_alarmDialog.js
rename : calendar/test/mozmill/eventDialog/testEventDialog.js => calendar/test/browser/eventDialog/browser_eventDialog.js
rename : calendar/test/mozmill/eventDialog/testEventDialogModificationPrompt.js => calendar/test/browser/eventDialog/browser_eventDialogModificationPrompt.js
rename : calendar/test/mozmill/eventDialog/testEventDialogSize.js => calendar/test/browser/eventDialog/browser_eventDialogSize.js
rename : calendar/test/mozmill/eventDialog/testUTF8.js => calendar/test/browser/eventDialog/browser_utf8.js
rename : calendar/test/browser/browser.ini => calendar/test/browser/invitations/browser.ini
rename : calendar/test/mozmill/invitations/test-imip-bar-eml.js => calendar/test/browser/invitations/browser_imipBarEmail.js
rename : calendar/test/mozmill/invitations/message-containing-event.eml => calendar/test/browser/invitations/message-containing-event.eml
rename : calendar/test/browser/browser.ini => calendar/test/browser/preferences/browser.ini
rename : calendar/test/mozmill/preferences/testAlarmDefaultValue.js => calendar/test/browser/preferences/browser_alarmDefaultValue.js
rename : calendar/test/mozmill/preferences/testCategoryColors.js => calendar/test/browser/preferences/browser_categoryColors.js
rename : calendar/test/browser/browser.ini => calendar/test/browser/recurrence/browser.ini
rename : calendar/test/mozmill/cal-recurrence/testAnnualRecurrence.js => calendar/test/browser/recurrence/browser_annual.js
rename : calendar/test/mozmill/cal-recurrence/testBiweeklyRecurrence.js => calendar/test/browser/recurrence/browser_biweekly.js
rename : calendar/test/mozmill/cal-recurrence/testDailyRecurrence.js => calendar/test/browser/recurrence/browser_daily.js
rename : calendar/test/mozmill/cal-recurrence/testLastDayOfMonthRecurrence.js => calendar/test/browser/recurrence/browser_lastDayOfMonth.js
rename : calendar/test/mozmill/cal-recurrence/testWeeklyNRecurrence.js => calendar/test/browser/recurrence/browser_weeklyN.js
rename : calendar/test/mozmill/cal-recurrence/testWeeklyUntilRecurrence.js => calendar/test/browser/recurrence/browser_weeklyUntil.js
rename : calendar/test/mozmill/cal-recurrence/testWeeklyWithExceptionRecurrence.js => calendar/test/browser/recurrence/browser_weeklyWithException.js
rename : calendar/test/browser/browser.ini => calendar/test/browser/recurrenceRotated/browser.ini
rename : calendar/test/mozmill/recurrenceRotated/testAnnualRecurrence.js => calendar/test/browser/recurrenceRotated/browser_annual.js
rename : calendar/test/mozmill/recurrenceRotated/testBiweeklyRecurrence.js => calendar/test/browser/recurrenceRotated/browser_biweekly.js
rename : calendar/test/mozmill/recurrenceRotated/testDailyRecurrence.js => calendar/test/browser/recurrenceRotated/browser_daily.js
rename : calendar/test/mozmill/recurrenceRotated/testLastDayOfMonthRecurrence.js => calendar/test/browser/recurrenceRotated/browser_lastDayOfMonth.js
rename : calendar/test/mozmill/recurrenceRotated/testWeeklyNRecurrence.js => calendar/test/browser/recurrenceRotated/browser_weeklyN.js
rename : calendar/test/mozmill/recurrenceRotated/testWeeklyUntilRecurrence.js => calendar/test/browser/recurrenceRotated/browser_weeklyUntil.js
rename : calendar/test/mozmill/recurrenceRotated/testWeeklyWithExceptionRecurrence.js => calendar/test/browser/recurrenceRotated/browser_weeklyWithException.js
rename : calendar/test/browser/browser.ini => calendar/test/browser/views/browser.ini
rename : calendar/test/mozmill/views/testDayView.js => calendar/test/browser/views/browser_dayView.js
rename : calendar/test/mozmill/views/testMonthView.js => calendar/test/browser/views/browser_monthView.js
rename : calendar/test/mozmill/views/testMultiweekView.js => calendar/test/browser/views/browser_multiweekView.js
rename : calendar/test/mozmill/views/testTaskView.js => calendar/test/browser/views/browser_taskView.js
rename : calendar/test/mozmill/views/testWeekView.js => calendar/test/browser/views/browser_weekView.js
rename : calendar/test/mozmill/shared-modules/CalendarUtils.jsm => calendar/test/modules/CalendarUtils.jsm
rename : calendar/test/mozmill/shared-modules/ItemEditingHelpers.jsm => calendar/test/modules/ItemEditingHelpers.jsm
extra : rebase_source : 8479fe06a943576ed7f78c82c7e617ff5e0c72d5
extra : amend_source : d9c6975c52320e351a85a759d39950045f56522c
2019-09-27 16:00:10 +12:00
Paul Morris f5098a97d5 Bug 1582782 - Enable 'brace-style' eslint rule. r=mkmelin 2019-09-20 12:06:32 -04:00
Paul Morris 1bd77215b1 Bug 1577835 - Reformat the .eslintrc.js files with Prettier. r=mkmelin
# ignore-this-changeset

These changes were achieved by deleting the .eslintrc.js
line from the .prettierignore file and running:
|mach eslint --fix|
2019-08-31 08:56:13 -04:00
Paul Morris f316bfebd3 Bug 1577835 - Adjust eslint config for reformatting. r=mkmelin 2019-08-30 13:22:44 -04:00
Paul Morris 9bcc5607c2 Bug 1577606 - Turn on Prettier but ignore all directories. r=darktrojan 2019-08-12 13:53:43 -04:00
Geoff Lankow 69481e6cfe No bug - Restore linting rules in place before mozilla-central enabled Prettier; rs=linting-only DONTBUILD
This change reverses the effects of https://hg.mozilla.org/mozilla-central/rev/d8ba04c4c323b0bb6bdc6f5a4b1ac7853209e0e5
2019-07-08 15:09:05 +12:00
Geoff Lankow 4e84373d81 Port bug 1464007 - Specify the 'html' plugin in .eslintrc.js by default for better editor integration. rs=bustage-fix DONTBUILD 2019-06-24 12:40:02 +12:00
Geoff Lankow 0899339e5b No bug - Disable ESLint plugin "prettier" for now; rs=bustage-fix DONTBUILD
Also, fix a linting error that emerged while linting was broken
2019-06-10 14:17:18 +12:00
Patrick Cloke 25b74fc170 Bug 1549166 - Use centralized ESLint configuration for chat tests. r=darktrojan 2019-05-20 13:29:08 -04:00
Geoff Lankow 3195c35104 Bug 1549166 - Centralise configuration of ESLint environments for test directories; r=aceman 2019-05-20 14:09:54 +12:00
Geoff Lankow 2529e6be03 Bug 1509779 - Codify unwritten rules in ESLint configuration; r=aceman 2018-11-29 12:04:40 +13:00
Geoff Lankow 514a5dcf91 Bug 1509779 - Stop ignoring mozilla/use-cc-etc linting rule, and other linting mistakes; r=aceman 2018-11-29 12:04:38 +13:00
Geoff Lankow d125d3b7f8 Bug 1504130 - Set environment of .eslintrc.js files to node; also fix two warnings; rs=NPOTB 2018-11-02 21:04:58 +13:00
Jorg K c00eb010f9 Bug 1487832 - Port 1486739 - fix up .eslintrc.js and commom/ for eslint comma-dangle rule. rs=bustage-fix 2018-09-01 00:53:28 +02:00
Geoff Lankow 0a780f7712 Bug 1478572 - Fix eslint bustage by re-adding missing exceptions; a=bustage DONTBUILD 2018-07-27 11:13:15 +12:00
Geoff Lankow c69b23a2d6 Bug 1478572 - Turn on ESLint in mail/components/about-support. r=jorgk 2018-07-26 22:57:39 +12:00
Philipp Kewisch f7cb625104 Bug 1436605 - Disable eslint mozilla/use-cc-etc rule for the time being. r=jorgk
MozReview-Commit-ID: EjPX8tHEA81
2018-02-08 10:43:53 +01:00
eslint 6105d979dd Bug 1417450 - Fix eslint after upgrade to v4. r=MakeMyDay
MozReview-Commit-ID: Ao9ccbj1jQ8

--HG--
extra : rebase_source : 20da198c5e85eaef0c1fd8811e83337acdb26592
2017-11-15 15:24:49 +01:00
eslint eb92da1bbe Bug 1410672 - Fix remaining minor eslint issues. r=MakeMyDay
MozReview-Commit-ID: CWodzlcADFj
2017-10-24 22:11:31 +02:00
eslint ca8aac3ec5 Bug 1346797 - Fix calendar eslint issues. r=MakeMyDay
MozReview-Commit-ID: AdhLRaAKMQs

--HG--
extra : rebase_source : eb5e2e1df6f48c4912cfd48920ae0bae4e048fea
2017-03-13 15:30:50 +01:00
eslint c737acba11 Bug 1310003 - Rename and lint deprecated .eslintrc files. r=MakeMyDay
MozReview-Commit-ID: CXzogLQ0gY0

--HG--
rename : .eslintrc => .eslintrc.js
rename : calendar/.eslintrc => calendar/.eslintrc.js
rename : calendar/test/mozmill/.eslintrc => calendar/test/mozmill/.eslintrc.js
rename : calendar/test/unit/.eslintrc => calendar/test/unit/.eslintrc.js
extra : rebase_source : c06174873d4c4575587c80ceed485867a9e7074f
2016-10-13 22:43:16 +02:00