[SM-204] Add the `curly` eslint rule (#3464)
This commit is contained in:
parent
f47dbccdef
commit
4e54b5a077
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue