[SM-204] Add the `curly` eslint rule (#3464)

This commit is contained in:
Oscar Hinton 2022-09-09 09:30:51 +02:00 committed by GitHub
parent f47dbccdef
commit 4e54b5a077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -64,6 +64,7 @@
"message": "Calling `svgIcon` directly is not allowed", "message": "Calling `svgIcon` directly is not allowed",
"selector": "CallExpression[callee.name='svgIcon']" "selector": "CallExpression[callee.name='svgIcon']"
} }
] ],
"curly": ["error", "all"]
} }
} }

View File

@ -1,7 +1,9 @@
window.addEventListener( window.addEventListener(
"message", "message",
(event) => { (event) => {
if (event.source !== window) return; if (event.source !== window) {
return;
}
if (event.data.command && event.data.command === "authResult") { if (event.data.command && event.data.command === "authResult") {
chrome.runtime.sendMessage({ chrome.runtime.sendMessage({