diff --git a/.eslintrc.json b/.eslintrc.json index 404abef39a..3a1c197326 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -64,6 +64,7 @@ "message": "Calling `svgIcon` directly is not allowed", "selector": "CallExpression[callee.name='svgIcon']" } - ] + ], + "curly": ["error", "all"] } } diff --git a/apps/browser/src/content/message_handler.ts b/apps/browser/src/content/message_handler.ts index 2e90038673..0f690bd4f7 100644 --- a/apps/browser/src/content/message_handler.ts +++ b/apps/browser/src/content/message_handler.ts @@ -1,7 +1,9 @@ window.addEventListener( "message", (event) => { - if (event.source !== window) return; + if (event.source !== window) { + return; + } if (event.data.command && event.data.command === "authResult") { chrome.runtime.sendMessage({