Commit Graph

31 Commits (f526c47b1ee929c677240420ff6124e2571701df)

Author SHA1 Message Date
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
Ika 514b6d3741 Bump Prettier dependency to 1.15.0 2018-11-07 09:12:25 +08:00
Ika 40f46740f6
fix(jsx): consistent quotes in JSX expression (#5349) 2018-11-06 15:38:50 +08:00
Beau Smith 6e0de08122 User can copy JSON config from Playground. (#5295) 2018-10-25 17:41:08 -04:00
Ika dd4687e7ef
feat(html): whitespace-sensitive formatting (#5168)
- whitespace-sensitive formatting 
  - respect css `display: block`/`white-space: pre` (data from [`html-styles`](https://github.com/marionebl/html-styles))
  - support magic comment (`<!-- display: block -->`)
  - add an option to specify whitespace sensitivity (`--html-whitespace-sensitivity <css|strict|ignore>`)
    - magic comments take precedence
    - (default) `css`: respect default css style (safe in the most cases)
    - `strict`: every node is considered whitespace sensitive (the safest)
    - `ignore`: every node is considered whitespace insensitive (dangerous, the original behavior)
  - inline inline-tags 
- support ie conditional comment (`<!--[if IE]><![endif]-->`)
- indent the script/style content
- no inconsistent output for 2+ attributes
- force break tag if there're multiline attributes
2018-10-13 13:55:38 +08:00
Ika b4a92c6ee5
feat(playground): use real code sample (#4770)
* feat(playground): double click to insert example

* fix: correct condition

* feat: real code sample

* fix: remove unnecessary updateValue

* feat: auto-select on focus
2018-07-01 16:17:25 +08:00
Suchipi ec45dc9a4c
(refactor): Move common options out of JS plugin (#4445)
* (refactor): Move common options out of JS plugin

* Add Common category to playground
2018-05-15 14:14:50 -06:00
Ika b46a46b112 fix(playground): add missing `input` code sample for `copy markdown` (#4382) 2018-04-26 00:37:29 -03:00
Lucas Duailibe b611c62dea last minute fixes 2018-04-20 11:50:36 -03:00
Lucas Duailibe 1f320a6031 range support 2018-04-20 11:30:47 -03:00
Lucas Duailibe 57cdf314d5 rename 2018-04-20 09:54:15 -03:00
Lucas Duailibe c794de0e9f start overlay support 2018-04-19 19:23:38 -03:00
Lucas Duailibe 9ca95011c0 refactor panels.js 2018-04-19 16:30:35 -03:00
Lucas Duailibe 961d25560f placeholder + refactors 2018-04-19 14:31:35 -03:00
Lucas Duailibe 971da5f8c1 lint fixes 2018-04-17 17:29:44 -03:00
Lucas Duailibe 0ca6ff691e simplify some stuff 2018-04-17 16:42:03 -03:00
Lucas Duailibe 2172ed95bf refactor & fixes 2018-04-17 16:09:44 -03:00
Lucas Duailibe 33c00ca111 handling PR versions 2018-04-17 13:53:20 -03:00
Lucas Duailibe f90560e6e9 second format 2018-04-17 13:40:55 -03:00
Lucas Duailibe 79a3ec1a04 lift formatting up 2018-04-17 10:28:35 -03:00
Lucas Duailibe ce81ae134c remove unused code 2018-04-13 03:11:41 -03:00
Lucas Duailibe eea6f068b4 refactors 2018-04-12 18:09:37 -03:00
Lucas Duailibe 94b5ab4d6e copy buttons + version link at the top 2018-04-12 15:09:04 -03:00
Lucas Duailibe 1c8dd0c1e7 more stuff 2018-04-12 13:28:28 -03:00
Lucas Duailibe c08aa1e4f8 moving files around 2018-04-12 12:16:16 -03:00
Lucas Duailibe 871ae13bb6 included doc debug 2018-04-12 11:54:30 -03:00
Lucas Duailibe 7b3fecf976 show ast 2018-04-11 22:28:50 -03:00
Lucas Duailibe faceecc776 add graphql mode 2018-04-11 21:01:36 -03:00
Lucas Duailibe 3ab84ad343 include rulers 2018-04-11 20:55:37 -03:00
Lucas Duailibe 602f47c185 moving stuff 2018-04-11 20:33:56 -03:00
Lucas Duailibe 47430d0c19 some huge changes 2018-04-11 18:22:03 -03:00