Y
Hacker News
new
|
ask
|
show
|
jobs
by
richthegeek
1583 days ago
That's what a linter is for!
1 comments
kclay
1582 days ago
What linting rule would enforce this?
link
SpikeMeister
1582 days ago
I've used this one:
https://eslint.org/docs/latest/rules/no-restricted-imports
link
kclay
1581 days ago
Thanks
link
underyx
1582 days ago
I use a custom Semgrep rule for it.
link