HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by richthegeek | Hacker News Reader
Parent
Full thread
richthegeek
·
That's what a linter is for!
View on HN
kclay
·
What linting rule would enforce this?
SpikeMeister
·
I've used this one:
https://eslint.org/docs/latest/rules/no-restricted-imports
kclay
·
Thanks
underyx
·
I use a custom Semgrep rule for it.
Reply on news.ycombinator.com