Skip to content
Brok UI

Loading…

No results

Lint UI-214

require-destructive-confirmation

Destructive actions need a confirmation step.

UI-214 default: warning accessibility UNCONFIRMED_DESTRUCTIVE_ACTION

Configure

In the lint.rules block of ui.json. It accepts message, exclude; see the policy for what the entries match.

ui.json JSON
"require-destructive-confirmation": ["warning", { "message": "...", "exclude": ["resources/views/legacy/**"] }]
terminal
php artisan ui:check --explain require-destructive-confirmation

Suppress one line

blade
{{-- ui-lint-disable-next-line require-destructive-confirmation: reason --}}