mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
chore: add no mixed operators rule
This commit is contained in:
parent
3e0be2e210
commit
763aecad93
|
@ -41,7 +41,13 @@
|
|||
"ignore": ["^./constants/firebase-config$"]
|
||||
}
|
||||
],
|
||||
"import/no-duplicates": "off"
|
||||
"import/no-duplicates": "off",
|
||||
"no-mixed-operators": [
|
||||
"error",
|
||||
{
|
||||
"groups": [["+", "??"]]
|
||||
}
|
||||
]
|
||||
},
|
||||
"settings": {
|
||||
"import/resolver": {
|
||||
|
|
|
@ -156,7 +156,7 @@ $("#popups").on("click", "#quoteApprovePopup .quote .approve", async (e) => {
|
|||
);
|
||||
}
|
||||
|
||||
Notifications.add("Quote approved. " + response.message ?? "", 1);
|
||||
Notifications.add(`Quote approved. ${response.message ?? ""}`, 1);
|
||||
quotes.splice(index, 1);
|
||||
updateList();
|
||||
});
|
||||
|
@ -215,7 +215,7 @@ $("#popups").on("click", "#quoteApprovePopup .quote .edit", async (e) => {
|
|||
);
|
||||
}
|
||||
|
||||
Notifications.add("Quote edited and approved. " + response.message ?? "", 1);
|
||||
Notifications.add(`Quote edited and approved. ${response.message ?? ""}`, 1);
|
||||
quotes.splice(index, 1);
|
||||
updateList();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue