Commit Graph

1971 Commits (58e5536741f455f1ee2891b655063cf996e7015e)

Author SHA1 Message Date
Lucas Duailibe a2c0a78cef 1.9.1 2017-12-05 21:33:19 -02:00
Lipis 23b8224240 Change cursor and remove outline in summaries on playground (#3415) 2017-12-05 21:21:02 -02:00
Lucas Duailibe 36a11b86bc Fix multiparser on playground (#3407)
* Fix multiparser in playground

* Remove unnecessary function call
2017-12-06 09:14:02 +11:00
Lucas Duailibe 7b299fb94e
Skip folders in CLI pattern (#3411) 2017-12-05 20:01:59 -02:00
Lucas Duailibe c34608f8ed
Bump editorconfig-to-prettier (#3412) 2017-12-05 19:01:48 -02:00
Lucas Duailibe 40af2e0514 Show a right border on sidebar 2017-12-05 18:29:49 -02:00
Lucas Duailibe 8bb6e169e2
Change playground options layout (#3374) 2017-12-05 17:54:07 -02:00
Lucas Duailibe c986f45ec7 fix lint 2017-12-05 17:48:10 -02:00
Lucas Duailibe 46f657bbaa add another test case 2017-12-05 16:30:21 -02:00
Lucas Duailibe 639c523885 Skip folders in CLI pattern 2017-12-05 16:07:27 -02:00
Lucas Azzola 829616dd6c Fix multiparser trailing comma regression (#3405)
* Fix multiparser trailing comma regression

* Refactor trailing comma application
2017-12-05 19:01:00 +01:00
Ika e09359d242
fix(doc-printer): no wrong function call (#3401) 2017-12-05 20:09:36 +08:00
Lucas Duailibe 66c9315d13
Don't default print comments for JSXFragments (#3398) 2017-12-05 08:41:45 -02:00
Ika f3e7ca2210 chore(playground): add new options (#3350) 2017-12-05 21:22:10 +11:00
Lucas Azzola c7c1d2e7a4 Upgrade Prettier to Prettier 1.9 (#3395)
* Upgrade to prettier@1.9.0

* Run eslint --fix

* Run prettylint --fix

* Fix playground with editorconfig script
2017-12-05 08:14:03 -02:00
Lucas Azzola 35fc6a6671 1.9.0 2017-12-05 10:23:51 +11:00
Joseph Frazier cecf0657a5 Re-add EditorConfig support (undo #3213) (#3255)
* Revert "Revert "Respect EditorConfig settings" (#3213)"

This reverts commit d2241fc0d5.

* Comment out EditorConfig docs

See https://github.com/prettier/prettier/pull/3213#issuecomment-343009769

* editorconfig: Support `indent_size = 0`

See https://github.com/prettier/prettier/pull/2760#discussion_r137447715
and c38b84c42a

* Revert "Comment out EditorConfig docs"

This reverts commit ddfa529c55cac4853a1e76e00c8b5e3ef158c01f.

* Mark EditorConfig functionality as v1.9.0+

See https://github.com/prettier/prettier/pull/3255#discussion_r150432508

* editorconfig: Upgrade editorconfig-to-prettier to 0.0.4

* editorconfig: Only enable for CLI, by default

https://github.com/prettier/prettier/pull/3255#issuecomment-348420546

* editorconfig: Add tests confirming that editorconfig is ignored by default in the API

https://github.com/prettier/prettier/pull/3255#issuecomment-348420546

* editorconfig: Add/fix CLI option parsing

* editorconfig: Move docs from configuration.md to options.md

* editorconfig: Add `oppositeDescription` to show docs for `--no-editorconfig`

Addresses https://github.com/prettier/prettier/pull/3255#discussion_r154542792

* editorconfig: Update test snapshots

* editorconfig: Remove unnecessary options parsing code

Addresses https://github.com/prettier/prettier/pull/3255#discussion_r154544560

* editorconfig: Move docs from options.md to api.md and cli.md

Addresses https://github.com/prettier/prettier/pull/3255#discussion_r154545979

* resolveConfig: return null if both .prettierrc and .editorconfig are missing

Addresses https://github.com/prettier/prettier/pull/3255#discussion_r154574613

* Don't add now-failing tests

The way these tests work, both `tests_integration/cli/config/.prettierrc`
and `.prettierrc` apply to `tests_integration/cli/config/editorconfig/file.shouldnotexist`,
so the test wouldn't work even on master. Here's a way to confirm that:

```js
const path = require('path')
const assert = require('assert')
const prettier = require('./')

const file = './tests_integration/cli/config/editorconfig/file.shouldnotexist'
console.log(prettier.resolveConfig.sync(file))
assert(prettier.resolveConfig.sync(file) === null)
```
2017-12-05 09:28:27 +11:00
Ika 1122701053 fix(doc-printer): respect indent/align order (#3383) 2017-12-05 08:59:27 +11:00
Kevin Gibbons 8e377a1e56 Add support for flow mixins when using babylon (#3391) 2017-12-05 08:58:14 +11:00
Marko Schulz a05811f8eb Fix link (#3392) 2017-12-05 08:55:32 +11:00
Lipis 475b2ab630 chore: Update packages to the latest patches (#3377) 2017-12-04 13:28:56 -07:00
Chris Burgin 38b490b092 Fixed website footer on mobile (#3335) (#3373) 2017-12-04 12:27:14 +11:00
Lucas Duailibe ceabc48e01
Format CSS prop for emotion (#3381) 2017-12-03 03:25:17 -03:00
Ika c1623d88e6 feat(markdown): preserve `break` style (#3325) 2017-12-03 15:02:13 +11:00
Lucas Azzola 8524ed5b6f
Fix printing of comments around decorators and class properties (#3382) 2017-12-03 14:59:35 +11:00
Lucas Duailibe 24036480c5 Massage ast for template literals inside a css prop 2017-12-02 23:45:34 -03:00
Lucas Duailibe a9be90c5d4 Format CSS prop for emotion 2017-12-02 22:50:07 -03:00
Simon Lydell d80728b5ff Support toplevel interpolations in graphql tags (#3370)
* Refactor multiparser

* Add support for toplevel interpolations in graphql tags

* Update snapshots

* Fix JSX-in-markdown special-case
2017-12-03 12:31:23 +11:00
Ika 073c0b16d8 feat(markdown): add `proseWrap: "preserve"` option (#3340)
* test: add test case

* feat(markdown): add `proseWrap: "preserve"` option

* test: add tests

* docs(options): update `proseWrap`

* feat(markdown): change default to `proseWrap: "preserve"`

BREAKING CHANGE

* docs(options): update `proseWrap`

* test: specify option explicitly

* Fix lint after merge

* Fix error after merge
2017-12-02 09:48:40 +11:00
Brian Ng d52d721cd1 Bump babylon to 7.0.0-beta.33 (#3372) 2017-12-02 09:39:10 +11:00
Ika 23c306c8a0
docs(index): fix links on GitHub (#3367) 2017-12-01 10:59:17 +08:00
Ryan Zimmerman d6bb6edeae Add note about proseWrap option under printWidth for clarity (#3364) 2017-11-30 17:54:54 -03:00
Lucas Azzola cd6749cbb9 Update contributing docs (#3357) 2017-11-30 10:32:08 -03:00
Lucas Duailibe f119d4a90f
Change run_spec to have explicit parser list (#3356) 2017-11-30 03:31:52 -03:00
Lucas Duailibe b2cca7eacc
Add support for JSX fragments (#3237) 2017-11-30 00:09:45 -03:00
Lucas Duailibe 8cbcede174
Update TypeScript to 2.6.2 (#3331) 2017-11-29 18:46:22 -03:00
Ika 7670024292 fix(markdown): do not break before special prefix (#3347) 2017-11-30 08:43:22 +11:00
Sylvan Mably 562b4e19d1 Fix broken footnote links (#3353) 2017-11-29 18:29:32 -03:00
Lucas Duailibe ec09b9136c Merge remote-tracking branch 'origin/master' into update-ts 2017-11-29 18:27:51 -03:00
Lucas Duailibe a778667a4f Bump typescript-eslint-parser 2017-11-29 18:27:19 -03:00
Lipis 2032b70918 Add Twitter social button (#3288)
* Twitter Badges

* Update README.md

* Update README.md

* Update Footer.js

* Update README.md

* Update Footer.js
2017-11-29 09:50:02 -07:00
Ika fbbfa52517 fix(markdown): do not print linebreaks in heading (#3343) 2017-11-29 22:13:38 +11:00
Lucas Azzola e04f22975d
Change "preview" to "pr" 2017-11-29 17:45:53 +11:00
Ika ac3f74e7a3
docs(options): add available version for `arrow-parens` (#3339) 2017-11-29 00:20:26 +08:00
Alex Rattray 606c5abbfc
Merge pull request #3324 from suchipi/arrow_parens
Simple arrow function parens option
2017-11-28 10:23:56 -05:00
Lucas Duailibe d8f54b0f13 Use released version instead of insiders 2017-11-28 10:06:28 -03:00
Lucas Duailibe 4d0acacb81 Merge branch 'master' into update-ts 2017-11-28 10:05:24 -03:00
Jacky Ho a02e3b3464 Fix format of comment in paren of call expression in arrow expression (#3334) 2017-11-28 21:58:39 +11:00
Suchipi Izumi 41a9ababc3 Add updated snapshot
Whoops, forgot this
2017-11-27 22:27:34 -07:00
Suchipi Izumi 6abdd2c6b7 PR feedback 2017-11-27 22:27:34 -07:00