2026-02-17 12:36:37 +01:00
|
|
|
language js(typescript)
|
2025-09-01 09:04:02 +02:00
|
|
|
|
2026-02-17 12:36:37 +01:00
|
|
|
`$chain.where($a)` where {
|
2025-09-01 09:04:02 +02:00
|
|
|
or {
|
|
|
|
|
$a <: contains `'='`,
|
|
|
|
|
$a <: contains `'=='`,
|
|
|
|
|
$a <: contains `'!='`,
|
|
|
|
|
$a <: contains `'!=='`
|
|
|
|
|
},
|
|
|
|
|
$a <: contains `null`,
|
2025-12-19 15:57:40 +01:00
|
|
|
register_diagnostic(span=$a, message="Comparisons to null using '=' or '==' are not allowed. Use 'is' or 'is not' instead.", severity="error")
|
2025-09-01 09:04:02 +02:00
|
|
|
}
|