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

[eslint-config-universe] Add import ordering alphabetization #7038

Merged
merged 6 commits into from Feb 14, 2020

Conversation

wschurman
Copy link
Member

@wschurman wschurman commented Feb 12, 2020

Why

This is the second part of #6847. Since import-js/eslint-plugin-import#1626 was merged and released in 2.20.1, we can now pull it into the esling-config-universe package.

How

  1. Update dependency version and update rule config to add alphabetization and enforce newlines between import groups. Add tests. Version of the packages was bumped from 2.2.0 to 2.3.0 based on semver guidelines. (commit 1)
  2. expotools check-packages --no-build --no-test --fix-lint (commit 2)
  3. expotools check-packages --no-build --no-test and manually fix lint errors, updating config as well to exclude .d.ts files for the rule since they have weird import semantics (can import inside declare block). (commit 3)
  4. expotools check-packages to rebuild the files. (commit 4)
  5. Update test snapshot in babel-preset-expo package. (commit 5)

Test Plan

expotools check-packages

@wschurman wschurman force-pushed the @wschurman/upstream-import-ordering branch from e842d4b to f27e09d Compare February 14, 2020 00:32
@wschurman wschurman requested a review from ide February 14, 2020 00:33
Copy link
Member

@ide ide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix up merge conflicts and let's get this landed.

@wschurman wschurman force-pushed the @wschurman/upstream-import-ordering branch from f27e09d to 9e42dc4 Compare February 14, 2020 20:32
@wschurman wschurman merged commit 92f6de5 into master Feb 14, 2020
@wschurman wschurman deleted the @wschurman/upstream-import-ordering branch February 14, 2020 21:38
@wschurman
Copy link
Member Author

Published eslint-config-universe@2.3.0 to npm.

Jamedjo pushed a commit to Jamedjo/expo that referenced this pull request Feb 4, 2021
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
gurs1kh pushed a commit to gurs1kh/expo that referenced this pull request Jan 18, 2024
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.

None yet

2 participants