I guess it depends on what you want out of a linter e.g. if you want it to check just syntax or semantics as well. Is “= NULL” syntactically correct?
"= NULL" is as syntactically correct in SQL as "if (x = null)" in C.
If it wasn't, code highlighting or compiling would break, both of which are much much more obvious.