Skip to content

Commit af66712

Browse files
committed
Bug 1861865 - Fix ESLint valid-jsdoc issues in protections code. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D192158
1 parent c271e63 commit af66712

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ module.exports = {
241241
"browser/components/preferences/**",
242242
"browser/components/privatebrowsing/**",
243243
"browser/components/prompts/PromptCollection.sys.mjs",
244-
"browser/components/protections/content/*-card.mjs",
245244
"browser/components/protocolhandler/WebProtocolHandlerRegistrar.sys.mjs",
246245
"browser/components/safebrowsing/content/test/**",
247246
"browser/components/screenshots/**",

browser/components/protections/content/lockwise-card.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export default class LockwiseCard {
9494
/**
9595
* Displays strings indicating stored logins for a user.
9696
*
97-
* @param {Number} storedLogins
97+
* @param {number} storedLogins
9898
* The number of browser-stored logins.
99-
* @param {Number} potentiallyBreachedLogins
99+
* @param {number} potentiallyBreachedLogins
100100
* The number of potentially breached logins.
101101
*/
102102
renderContentForLoggedInUser(storedLogins, potentiallyBreachedLogins) {

browser/components/protections/content/monitor-card.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default class MonitorClass {
145145

146146
/**
147147
* Retrieves the monitor data and displays this data in the card.
148-
**/
148+
*/
149149
getMonitorData() {
150150
RPMSendQuery("FetchMonitorData", {}).then(monitorData => {
151151
// Once data for the user is retrieved, display the monitor card.
@@ -190,11 +190,11 @@ export default class MonitorClass {
190190
* Builds the appropriate URL that takes the user to the Monitor website's
191191
* sign-up/sign-in page.
192192
*
193-
* @param {String|null} email
193+
* @param {string | null} email
194194
* Optional. The email used to direct the user to the Monitor website's OAuth
195195
* sign-in flow. If null, then direct user to just the Monitor website.
196196
*
197-
* @return URL to Monitor website.
197+
* @returns {string} URL to Monitor website.
198198
*/
199199
buildMonitorUrl(email = null) {
200200
return email

0 commit comments

Comments
 (0)