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

Wrap type-only class fields in flow comments #11096

Merged
merged 2 commits into from Feb 9, 2020

Conversation

nicolo-ribaudo
Copy link
Member

Q                       A
Patch: Bug Fix? Yes
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Our current code will break when #10039 is fixed. This has been caught by #10120.

I will push this commit to #10120 to check if this is enough, please don't merge this PR until we are sure that e2e tests pass.

@nicolo-ribaudo nicolo-ribaudo added PR: Internal 🏠 A type of pull request used for our changelog categories area: flow labels Feb 5, 2020
@@ -1,7 +1,7 @@
// @flow

import type { Options } from "../options";
import type { File, JSXOpeningElement } from "../types";
import type { File /*::, JSXOpeningElement */ } from "../types";
Copy link
Member Author

Choose a reason for hiding this comment

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

This is needed otherwise ESLint marks it as unused (because it's "used" inside a comment).

@nicolo-ribaudo nicolo-ribaudo merged commit 8ab27c8 into babel:master Feb 9, 2020
@nicolo-ribaudo nicolo-ribaudo deleted the flow-undef-prop branch February 9, 2020 10:45
rajasekarm pushed a commit to rajasekarm/babel that referenced this pull request Feb 17, 2020
* Wrap type-only class fields in flow comments

* Fix
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 11, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: flow outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants