(Draft) biome v2でカスタムルールを書きたい
試行錯誤中
code:grit
language js
$statements where {
$statements <: contains redirect($args)
} and $statements where {
$statements <: not after "return",
register_diagnostic(
span = $statements,
message = "Do not use direct DOM elements. Use the project's design system instead.",
severity = "error"
)
}