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

Fix ESlint problems / typescript for cvat-core #5027

Merged
merged 8 commits into from
Oct 7, 2022

Conversation

klakhov
Copy link
Contributor

@klakhov klakhov commented Oct 3, 2022

Motivation and context

  • Fix cvat-ui ESlint problems
  • Fix cvat-core ESlint problems

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@klakhov klakhov marked this pull request as ready for review October 5, 2022 06:48
@klakhov
Copy link
Contributor Author

klakhov commented Oct 5, 2022

/check

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

❌ Some checks failed
📄 See logs here

@bsekachev
Copy link
Member

/check

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

❌ Some checks failed
📄 See logs here

@klakhov
Copy link
Contributor Author

klakhov commented Oct 5, 2022

/check

1 similar comment
@bsekachev
Copy link
Member

/check

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2022

✔️ All checks completed successfully
📄 See logs here

Comment on lines 38 to 40
"cvat-canvas": "file:../cvat-canvas",
"cvat-canvas3d": "file:../cvat-canvas3d",
"cvat-core": "file:../cvat-core",
Copy link
Member

Choose a reason for hiding this comment

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

We should not add these dependencies here. It leads to bugs with yarn
They were deleted before to avoid it

Copy link
Member

Choose a reason for hiding this comment

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

Hot reload does not work when change these packages

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the pr - tried to use yarn's link instead of file. Hot reload woks fine for me with that change. Could you try it?

//
// SPDX-License-Identifier: MIT
import 'redux-thunk/extend-redux';
Copy link
Member

Choose a reason for hiding this comment

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

Could you please explain this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Recently I've been having such type error in cvat-ui:

Argument of type 'ThunkAction<{}, AnyAction>' is not assignable to parameter of type 'AnyAction'.ts(2345)

on each call to dispatch. This import solved the error.

@bsekachev
Copy link
Member

/check

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2022

✔️ All checks completed successfully
📄 See logs here

@bsekachev bsekachev merged commit f719f58 into develop Oct 7, 2022
@bsekachev bsekachev deleted the kl/typescripted-cvat-core branch October 11, 2022 13:48
@nmanovic nmanovic mentioned this pull request Dec 12, 2022
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