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

chore: Update ESLint and @typescript-eslint dependencies #1540

Merged
merged 2 commits into from
Jan 13, 2022

Conversation

lahirumaramba
Copy link
Member

@lahirumaramba lahirumaramba commented Jan 12, 2022

This is the first PR of a series of changes to update @google-cloud/firestore dependency to 5.x.

@google-cloud/firestore 5.x requires typescript 4.x, which breaks the current typescript-eslint versions we use. An immediate workaround is to replace tuple types with arrays. The proper fix is to update eslint and typescript-eslint dependencies.

We have decided to fix this properly by updating the dependencies. We are addressing this in multiple PRs and as the first step this change handles the eslint update.

  • Updated eslint to ^7.1.0, @typescript-eslint/eslint-plugin and @typescript-eslint/parser to ^5.0.0.
  • In ESlint 7 camelcase check has been replaced with @typescript-eslint/naming-convention. Updated the config to reflect this change and removed the previously used disable camelcase rules.
  • The new @typescript-eslint/naming-convention works quite differently from the previous @typescript-eslint/camelcase check. I disabled a few checks for now and we will enable them fixing the errors as we go in the future.

@lahirumaramba lahirumaramba merged commit db137e9 into master Jan 13, 2022
@lahirumaramba lahirumaramba deleted the lm-update-eslint branch January 13, 2022 19:25
lahirumaramba added a commit that referenced this pull request Jan 14, 2022
This is the second PR of a series of changes to update @google-cloud/firestore dependency to 5.x. This is a follow-up to #1540

- Upgraded Typescript from ~3.7.3 to ~4.4.3
- Fixed TS2790: The operand of a 'delete' operator must be optional errors

Note: Manually tested for backwards compatibility on TS 3.7.x to 4.5.x. We will add TS compatibility tests to CIs in the future.
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