JavaScript’s confirm function is widely considered to be obtrusive as UI elements and should be replaced by a more appropriate custom UI implementation.
Apply with the Grit CLI
grit apply no_confirm
Remove alert, confirm and prompt
BEFORE
confirm('Are you sure?'); customConfirm('Are you sure?');
AFTER
customConfirm('Are you sure?');