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

Add sorting of require statements with autofix #53

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

satazor
Copy link
Contributor

@satazor satazor commented Feb 24, 2022

This commit also adds autofix for import statements.

I've tested this in the backend and frontend-clients and is working nicely.

Please note that both diffs contain changes due to #52.

The backend contains a lot of changes due to lodash now being placed properly in its place as well as other situations were require statements order was wrong.

Both diffs contain small changes related to wrong usage of map, filter and other functions where we were not returning anything. This is because we enabled array-callback-return in #52

@satazor satazor force-pushed the use-new-sort-imports-require-plugin branch 6 times, most recently from 46e1070 to 95c4007 Compare February 24, 2022 22:59
This commit also adds autofix for import statements.

Please note that Node.js min version is now 14.
@satazor satazor force-pushed the use-new-sort-imports-require-plugin branch from 95c4007 to ff92937 Compare February 25, 2022 10:00
@nunofgs nunofgs merged commit 572ffcf into master Feb 25, 2022
@nunofgs nunofgs deleted the use-new-sort-imports-require-plugin branch February 25, 2022 10:55
@waldyrious
Copy link
Contributor

This change would have single-handedly rendered a considerable chunk of past code review comments unnecessary, if memory serves me well. Nice work, @satazor! ❤️

@satazor
Copy link
Contributor Author

satazor commented Mar 1, 2022

Thank you @waldyrious

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

Successfully merging this pull request may close these issues.

4 participants