Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up imports #121

Open
eharkins opened this issue Jan 8, 2019 · 0 comments
Open

Clean up imports #121

eharkins opened this issue Jan 8, 2019 · 0 comments

Comments

@eharkins
Copy link
Contributor

eharkins commented Jan 8, 2019

JS imports should all be import * as ns from "../blah", instead of import {blah, blah, blah, ...} from "../blah". The former makes for more readable code, which doesn't require bouncing around the file when trying to figure out where things came from, or (when writing) to use a new function from a namespace you've already imported.

In the code you then see
ns.doStuff()

instead of

doStuff()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant