Skip to content

noSvelteAtDebugTags (HTML)

Language HTML
biome.json
{
"linter": {
"rules": {
"nursery": {
"noSvelteAtDebugTags": "error"
}
}
}
}

Disallow the use of Svelte’s {@debug} tag.

The {@debug} tag is a debugging aid that logs the values of the given variables to the console whenever they change, and pauses execution when developer tools are open. It should be removed once you are done debugging, as it should not remain in production code.

{@debug user}
code-block.svelte:1:1 lint/nursery/noSvelteAtDebugTags  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected {@debug} tag.

> 1 │ {@debug user}
^^^^^^^^^^^^^
2 │

The {@debug} tag should be removed once you no longer need it for debugging.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

Safe fix: Remove the {@debug} tag.

1 │ {@debug·user}
-------------
{user}