Dave Porter

Results 8 comments of Dave Porter

If I'm understanding your need correctly, can you add `_` to the [globals list](https://github.com/Galooshi/import-js#globals)?

From #376: > I'll try to come up with a solution that doesn't involve having to watch node_modules for changes. If you have any ideas on that, let me know!...

You're right that default exports are imported separately from named exports — i.e. that `*` doesn't include defaults (🤷🏼‍♂️), but it is possible to use them together: `import myDefault, *...

I see — I think that heuristic probably makes sense for local files, especially since your local-file heuristics already assume that files are named after their exports. - I would...

Thanks! I’m unfortunately not currently in a position to write code for this project. However if you submit a PR with that change I’ll take a look.

(Don’t update the value outside of a useEffect though, at least in React, as it may run the render but never commit, e.g. if it hits an error boundary in...