noSvelteAtDebugTags (HTML)
Language HTML
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/noSvelteAtDebugTags - This rule has a safe fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
svelte/no-at-debug-tags
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "noSvelteAtDebugTags": "error" } } }}Description
Section titled “Description”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.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”{@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}References
Section titled “References”Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.