Re:What's TypeScript compiling? Use a treemap to find out
by hinkley on Monday August 01, 2022 @01:06PM
(#32309058)
You still have to police your coworkers to keep them from importing the whole goddamned thing just for the auth or s3 code...
[ Parent
| on HN ]
Re:What's TypeScript compiling? Use a treemap to find out
by richthegeek on Monday August 01, 2022 @01:21PM
(#32309244)
That's what a linter is for!
Re:What's TypeScript compiling? Use a treemap to find out
by kclay on Monday August 01, 2022 @07:24PM
(#32313410)
What linting rule would enforce this?
Re:What's TypeScript compiling? Use a treemap to find out
by SpikeMeister on Monday August 01, 2022 @07:44PM
(#32313577)
I've used this one: https://eslint.org/docs/latest/rules/no-restricted-imports