chore: add no mixed operators rule

This commit is contained in:
Miodec 2024-02-17 17:24:41 +01:00
parent 3e0be2e210
commit 763aecad93
2 changed files with 9 additions and 3 deletions

View file

@ -41,7 +41,13 @@
"ignore": ["^./constants/firebase-config$"]
}
],
"import/no-duplicates": "off"
"import/no-duplicates": "off",
"no-mixed-operators": [
"error",
{
"groups": [["+", "??"]]
}
]
},
"settings": {
"import/resolver": {

View file

@ -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();
});