Skip to content

Commit

Permalink
🚨 Reduce the number of linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Nov 18, 2023
1 parent 37aca87 commit c85296f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions scripts/unit-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ new App()
.get('/config', (_, res) => void res.send({ shouldWatch }))
.post('/results', (req, res) => {
req.on('data', (chunk: Buffer) => {
// eslint-disable-next-line no-console
console.log(chunk.toString())
})
req.on('close', () => {
Expand Down
6 changes: 3 additions & 3 deletions src/content/browser/components/tabs/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,21 +305,21 @@ class TabProgressListener
aStatus: number,
aMessage: string,
): void {
console.log('onStatusChange')
// console.log('onStatusChange')
}
onSecurityChange(
aWebProgress: nsIWebProgressType,
aRequest: nsIRequestType,
aState: number,
): void {
console.log('onSecurityChange')
// console.log('onSecurityChange')
}
onContentBlockingEvent(
aWebProgress: nsIWebProgressType,
aRequest: nsIRequestType,
aEvent: number,
): void {
console.log('onContentBlockingEvent')
// console.log('onContentBlockingEvent')
}

QueryInterface = ChromeUtils.generateQI([
Expand Down
2 changes: 1 addition & 1 deletion src/content/browser/lib/shortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function initializeShortcuts() {
runOnCurrentTab((tab) => tab.goForward())
break
default:
console.log(event)
console.warn('Unknown event', event)
}
})
}
2 changes: 0 additions & 2 deletions src/content/browser/lib/xul/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const { useRemoteTabs, useRemoteSubframe } = window.docShell.QueryInterface(
Ci.nsILoadContext,
)

console.log(useRemoteTabs, useRemoteSubframe)

const DEFAULT_BROWSER_ATTRIBUTES = {
message: 'true',
messagemanagergroup: 'browsers',
Expand Down
3 changes: 1 addition & 2 deletions src/modules/BrowserGlue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ export class BrowserGlue {
QueryInterface = ChromeUtils.generateQI(['nsIObserver'])

constructor() {
console.log('BrowserGlue impl')

lazy.ActorManagerParent.addJSProcessActors(JS_PROCESS_ACTORS)
lazy.ActorManagerParent.addJSWindowActors(JS_WINDOW_ACTORS)
}

// nsIObserver impl
observe(aSubject: nsISupportsType, aTopic: string, aData: string): void {
// eslint-disable-next-line no-console
console.log({ aSubject, aTopic, aData })
}
}
1 change: 1 addition & 0 deletions src/modules/FaviconLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ class IconLoader {
} catch (e: any) {
if (e.result != Cr.NS_BINDING_ABORTED) {
if (typeof e.data?.wrappedJSObject?.httpStatus !== 'number') {
// eslint-disable-next-line no-console
console.error(e)
}

Expand Down

0 comments on commit c85296f

Please sign in to comment.