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