3 ms·
You still have to police your coworkers to keep them from importing the whole goddamned thing just for the auth or s3 code...
by hinkley 4y ago
You still have to police your coworkers to keep them from importing the whole goddamned thing just for the auth or s3 code...
- richthegeek 4y agoThat's what a linter is for!
- kclay 4y agoWhat linting rule would enforce this?
- SpikeMeister 4y agoI've used this one: https://eslint.org/docs/latest/rules/no-restricted-imports https://eslint.org/docs/latest/rules/no-restricted-imports
- kclay 4y agoThanks
- underyx 4y agoI use a custom Semgrep rule for it.