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

refactor: move to typescript, drop eslint and use prettier for linting, fix linting issues #1020

Merged
merged 88 commits into from
Jan 13, 2023

Conversation

saihaj
Copy link
Member

@saihaj saihaj commented Dec 13, 2022

  • Moved all files to TypeScript, most types are any to expedite the process
  • Removed eslint because its only rule is prettier
  • Lint with prettier instead
  • Fixed all linting issues

@changeset-bot
Copy link

changeset-bot bot commented Dec 13, 2022

🦋 Changeset detected

Latest commit: 954cee6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphprotocol/graph-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@enisdenjo enisdenjo changed the title refactor: Move to TS refactor: move to typescript, drop eslint and use prettier for linting, fix linting issues Jan 12, 2023
let conversions = TYPE_CONVERSIONS.getIn([fromTypeSystem, toTypeSystem])
if (conversions === undefined) {
if (conversions == undefined) {
Copy link
Member Author

Choose a reason for hiding this comment

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

maybe we should keep this one? maybe it was trying to account for all falsy values?

Copy link
Member

Choose a reason for hiding this comment

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

It was strictly checking for undefined previously. I've reverted the change just to reduce the changeset (and keep the bugs away).

See here: 954cee6.

Copy link
Member Author

@saihaj saihaj left a comment

Choose a reason for hiding this comment

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

LGTM

@saihaj saihaj merged commit 4c5e452 into main Jan 13, 2023
@enisdenjo enisdenjo deleted the saihaj/move-to-ts branch January 13, 2023 13:40
@enisdenjo enisdenjo mentioned this pull request Jan 31, 2023
2 tasks
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.

2 participants