no-alert
Configuration
rslint.config.ts
Rule Details
Disallow the use of alert, confirm, and prompt.
JavaScript's alert, confirm, and prompt functions are widely considered to be obtrusive as UI elements and should be replaced by a more appropriate custom UI implementation. Furthermore, alert is often used while debugging code, which should be removed before deployment to production.
Examples of incorrect code for this rule:
Examples of correct code for this rule: