infoalloggi-monorepo/apps/infoalloggi/biome_plugins/null.grit

13 lines
331 B
Text
Raw Normal View History

language js(typescript)
`$chain.where($a)` where {
or {
$a <: contains `'='`,
$a <: contains `'=='`,
$a <: contains `'!='`,
$a <: contains `'!=='`
},
$a <: contains `null`,
register_diagnostic(span=$a, message="Comparisons to null using '=' or '==' are not allowed. Use 'is' or 'is not' instead.", severity="error")
}