Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Sort imports #70

Closed
wincent opened this issue Aug 19, 2019 · 1 comment · Fixed by #90
Closed

Sort imports #70

wincent opened this issue Aug 19, 2019 · 1 comment · Fixed by #90
Assignees
Labels

Comments

@wincent
Copy link
Contributor

wincent commented Aug 19, 2019

We would like to sort imports automatically, so creating this ticket for enforcement.

We also have this liferay-frontend-guidelines ticket for documenting how imports should be sorted.

See also latest example of this coming up.

@jbalsas
Copy link
Contributor

jbalsas commented Aug 24, 2019

I was doing some research on this... it feels like the most widely used imports plugin for eslint is eslint-plugin-imports.

weekly downloads last publish license contributors used by
4,582,919 a month ago MIT  153 1,433,869 repos

It supports group-based ordering of imports and support for rhs alphabetization is up for review at import-js/eslint-plugin-import#1360

@wincent wincent self-assigned this Sep 20, 2019
wincent added a commit that referenced this issue Sep 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants