fix eslint issues

This commit is contained in:
Amruth Pillai
2024-09-02 12:50:57 +02:00
parent e3f3b8b464
commit 87a395683d
5 changed files with 11 additions and 2 deletions

View File

@ -12,6 +12,9 @@
}
},
"rules": {
// eslint
"@typescript-eslint/no-require-imports": "off",
// react
"react/no-unescaped-entities": "off",
"react/jsx-sort-props": [

View File

@ -17,6 +17,9 @@
},
"plugins": ["lingui"],
"rules": {
// eslint
"@typescript-eslint/no-require-imports": "off",
// react
"react/no-unescaped-entities": "off",
"react/jsx-sort-props": [

View File

@ -9,7 +9,7 @@
} else {
document.documentElement.classList.remove("dark");
}
} catch (_) {
} catch {
// pass
}
})();

View File

@ -13,7 +13,7 @@ type ToasterToast = ToastProps & {
action?: ToastActionElement;
};
const actionTypes = {
export const actionTypes = {
ADD_TOAST: "ADD_TOAST",
UPDATE_TOAST: "UPDATE_TOAST",
DISMISS_TOAST: "DISMISS_TOAST",