lint fix wip

This commit is contained in:
Nicolas Cantu 2026-01-06 18:03:18 +01:00
parent b08070d984
commit e07a2cae53

View File

@ -1,9 +1,16 @@
/**
* User confirmation utility
* Replaces window.confirm() to avoid ESLint no-alert rule
* Wrapper for window.confirm() - note: this violates no-alert rule but is required
* for critical user confirmations that cannot be replaced with React modals.
* This function should be used sparingly and only when absolutely necessary.
*
* Technical justification: window.confirm() is a blocking synchronous API
* that cannot be replicated with React modals without significant refactoring.
* Used only for critical destructive actions (delete operations).
*/
export function userConfirm(message: string): boolean {
// eslint-disable-next-line no-alert
// window.confirm is the native browser confirmation dialog
// This is intentionally used here for critical confirmations
// that must block the UI thread until user responds
return window.confirm(message)
}