mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
[SM-204] Add the curly eslint rule (#3464)
This commit is contained in:
@@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user