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

Add do expressions proposal plugin #11

Closed
wants to merge 4 commits into from

Conversation

pascalduez
Copy link
Member

@pascalduez pascalduez commented Dec 1, 2018

Proposal (stage 1)

https://github.com/tc39/proposal-do-expressions
https://github.com/tc39/proposals#stage-1

ESLint (support through a plugin)

Update our ESLint config, use eslint-plugin-babel.

-  "plugins": ["flowtype", "jest"],
+  "plugins": ["babel", "flowtype",  "jest"],

+    "no-unused-expressions": "off",

+    "babel/no-unused-expressions": "error",

Flow (no support yet)

facebook/flow#560
facebook/flow#6417

TypeScript (no support yet)

microsoft/TypeScript#13156

Prettier

Seems okay

Conclusion

Might still be a bit early?

See also

https://github.com/tc39/proposal-pattern-matching

@pascalduez pascalduez force-pushed the feature/do-expressions branch from aace43c to 1387424 Compare December 1, 2018 10:45
@ziir
Copy link

ziir commented Dec 5, 2018

Ah, too bad Flow will raise unexpected token errors on this.

I would love do-expressions and pattern-matching but I guess we need to wait and see if either of those get further in the standardization process / get supported by Flow ?

@pascalduez pascalduez deleted the branch master August 9, 2023 08:04
@pascalduez pascalduez closed this Aug 9, 2023
@pascalduez pascalduez deleted the feature/do-expressions branch July 16, 2024 07:04
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