Y
Hacker News
new
|
ask
|
show
|
jobs
by
dns_snek
14 days ago
More generally you can use "no-restricted-syntax" rule to forbid almost any type of syntax by matching AST against CSS-like selectors.
https://eslint.org/docs/latest/rules/no-restricted-syntax
https://typescript-eslint.io/play/