Conversation
|
Hm, some of these imports import only types, so they're not actually a real dependency for bundling / module loading. The workaround seems to be enabling |
|
See eslint-import...robojumper:DIM:eslint-import for |
|
Gotcha. I figured we'd want to turn on the type imports at some point, but they really don't offer much of any value outside of this. |
|
Looked some more at the const enum thing. TypeScript is vaguely in favor of allowing |
|
At the end of the day this is what's stopped me from using this plugin in the past - it has to recreate all the knowledge that both TypeScript and Webpack have in order to make sense of things. |
This sets up eslint-plugin-import. Most of its rules are redundant with normal build errors, but this adds a few interesting ones. I've fixed all except the
no-cycleerrors, of which we have 123. We can maybe chip away at them here?