Commit Graph

3 Commits (2cfd8fb5180d35eddbe5aa8319f587e21abf8139)

Author SHA1 Message Date
Lucas Duailibe 2e6191fe77
Prevent adding quotes if there's a numeric literal as key (#6138) 2019-06-04 13:45:29 -03:00
Lucas Duailibe 012b7a653e
Prevent adding unnecessary quotes when a computed key exists (#6119) 2019-05-14 19:41:49 -03:00
Lucas Azzola f526c47b1e
Add an option to modify when Prettier quotes object properties (#5934)
* Implement quote-props=preserve

* Implement quote-props=consistent

* Add tests

* Enable quoteProps in playground

* Add documentation

* Cache objectHasStringProp calculations

* Fixup changelog
2019-03-06 20:33:08 +11:00