Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Sep 10, 2019

- Summary

This ensures the require() statements are grouped: first the core modules, then the node modules, then the local imports. This is much easier to browse code when imports/require are on top of the file and grouped.

The import/order ESLint rule is added so that the grouping happens automatically on eslint --fix, i.e. we don't need to think about it. This happens on save if your IDE supports (VSCode does).

- Description for the changelog

Group require() statements together.

@ehmicky ehmicky force-pushed the refactor/reorder-imports branch from d755c78 to 0fd7f04 Compare September 10, 2019 16:27
@ehmicky ehmicky force-pushed the refactor/reorder-imports branch from 0fd7f04 to d1035b4 Compare September 10, 2019 16:28
@coveralls
Copy link

Coverage Status

Coverage remained the same at 66.531% when pulling d1035b4 on refactor/reorder-imports into 3d40ef4 on master.

@ehmicky ehmicky requested review from DavidWells and keiko713 and removed request for keiko713 September 16, 2019 12:04
@ehmicky ehmicky merged commit 65ba88f into master Oct 2, 2019
@ehmicky ehmicky deleted the refactor/reorder-imports branch October 2, 2019 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants