Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: