Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 187787d

Browse files
committed
Make eslint happy again
1 parent 663e188 commit 187787d

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

.eslintrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
DEFAULT_REMINDER: false,
1717
DOH_URI: false,
1818
DOH_BOOTSTRAP_ADDRESS: false,
19+
FXA_DEVICE_LIMIT: false,
1920
FXA_ERR_AUTH: false,
2021
FXA_ERR_GEO: false,
2122
FXA_ERR_NETWORK: false,
@@ -30,11 +31,14 @@ module.exports = {
3031
PROXY_STATE_AUTHFAILURE: false,
3132
PROXY_STATE_CAPTIVE: false,
3233
PROXY_STATE_CONNECTING: false,
34+
PROXY_STATE_DEVICELIMIT: false,
3335
PROXY_STATE_GEOFAILURE: false,
3436
PROXY_STATE_INACTIVE: false,
3537
PROXY_STATE_LOADING: false,
3638
PROXY_STATE_OFFLINE: false,
39+
PROXY_STATE_ONBOARDING: false,
3740
PROXY_STATE_OTHERINUSE: false,
41+
PROXY_STATE_PAYMENTREQUIRED: false,
3842
PROXY_STATE_PROXYAUTHFAILED: false,
3943
PROXY_STATE_PROXYERROR: false,
4044
PROXY_STATE_UNAUTHENTICATED: false,

src/background/ipinfo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class IPInfo extends Component {
2424
}
2525

2626
async init() {
27-
log ("init");
27+
log("init");
2828
this.service = await ConfigUtils.getSPService();
2929
}
3030

@@ -71,7 +71,7 @@ export class IPInfo extends Component {
7171
try {
7272
let resp = await Promise.race([
7373
fetch(request, {cache: "no-cache"}),
74-
new Promise((_, reject) => setTimeout(() => reject(new Error('timeout')), 2000))
74+
new Promise((_, reject) => setTimeout(() => reject(new Error("timeout")), 2000))
7575
]);
7676

7777
if (!resp || resp.status !== 200) {

src/background/logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class Logger extends Component {
2727
if (self) {
2828
self.logInternal(category, msg, rest);
2929
}
30-
}
30+
};
3131
}
3232

3333
logInternal(category, msg, rest) {

src/background/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ class Main {
606606
return this.tokenGenerated();
607607

608608
case "logRequired":
609-
return await this.logger.syncGetLogs();
609+
return this.logger.syncGetLogs();
610610

611611
case "onboardingEnd":
612612
return this.onboardingEnd();

src/background/network.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const DOH_REQUEST_TIMEOUT = 30000; // 30 secs
1212
// Timeout between 1 network error and the next one.
1313
const NET_ERROR_TIMEOUT = 5000; // 5 seconds.
1414

15-
const NET_ERROR_WARNING_TIMEOUT = 2000 // 2 seconds.
15+
const NET_ERROR_WARNING_TIMEOUT = 2000; // 2 seconds.
1616

1717
// Telemetry host
1818
const TELEMETRY_HOST = "https://incoming.telemetry.mozilla.org";

src/background/ui.js

-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ export class UI extends Component {
132132
case "onboardingEnd":
133133
this.sendMessage("onboardingEnd");
134134
break;
135-
136135
}
137136
});
138137

src/commons/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const ConfigUtils = {
133133
},
134134

135135
async getProxyState() {
136-
return await this.getStorageKey("proxyState");
136+
return this.getStorageKey("proxyState");
137137
},
138138

139139
async getMessageServiceInterval() {

src/popup/views/onboarding.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {View} from '../view.js';
1+
import {View} from "../view.js";
22

33
class ViewOnboarding extends View {
44
syncShow() {
@@ -30,7 +30,7 @@ class ViewOnboarding extends View {
3030
}
3131

3232
async handleClickEvent(e) {
33-
if (e.target.id == "onboardingNextButton") {
33+
if (e.target.id === "onboardingNextButton") {
3434
// Jump to the next card on clicking "next".
3535
let activeCard = document.querySelector(".card:not([hidden])");
3636
let nextCard = activeCard.nextElementSibling;
@@ -44,7 +44,7 @@ class ViewOnboarding extends View {
4444
}
4545
e.preventDefault();
4646
}
47-
if (e.target.id == "onboardingDoneButton" || e.target.id == "onboardingCloseButton") {
47+
if (e.target.id === "onboardingDoneButton" || e.target.id === "onboardingCloseButton") {
4848
await View.sendMessage("onboardingEnd");
4949
e.preventDefault();
5050
}

0 commit comments

Comments
 (0)