-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
2.1 removes quotes from numeric keys in flow types #9036
Comments
|
This looks like a solution. Thanks. |
@TrySound A unrelated question, do you use flow with |
Yes, I always use flow annotation. |
Thank you! |
Prettier 2.1.0
https://prettier.io/playground/#N4Igxg9gdgLgprEAuEATOYA2BDATnAAhgE8AHQgYQkwlwIF4DgAfAHSgIIHIBWABi5ICAZxi4AllADmAGnacuARj4ChoidLkduAJhWCRYybPncAzPrVHNprgBZLhjSajMAviBkgIpGOOjCyKB4uBAA7gAKeAiBKNiYYdjEgV4ARrjYYADWcDAAyqSZxshiAK5wXnAAtqlwqOioADLY0qXYUnAAYrRV2DB+0sgg2KUwEJ4gABYwVZgA6pPi8MKFYHB5MUviAG5LxENgwikgksJwuDARGVK9yABm8WdeAFbCAB4AQhnZuXnYVXBGpI4PdHhUQK83nljJg4ABFUoQeCgzBPECFXBnXBDVLYWqYCakDQwObiVAwSbIAAcfC8RIgZzmGVIQyJcCx2xBXgAjoj4FcfLFhsIALRQOB1OoTfC88T4K7tW5IB6o8FnKriEq4cpeYQw+F8kHKsFeGB40nkylIHSmjLiTDGKhVJUgdk8CalM4AFTxsRVaO25QAklB0LA8mAJL4AIKhvIkWEos5uNxAA
# Options (if any): --single-quote
Flow does not allow numeric keys without quotes in types. In objects it's not allowed as well though this is something I could deal with. With types it's a bug.
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: