Commit Graph
34 Commits
Author SHA1 Message Date
Jed Fox b878a54e6a Reformat the first version info in the option docs (#5604)
* Reformat the first version info in the option docs

* Make the italic text actually italic

* Update new options; reword the filepath docs
2018-12-07 13:16:31 -05:00
Jed Fox c4b54e178f Delete Appveyor config (ref #5410) 2018-11-14 08:32:32 -05:00
Jed Fox 2136fdc858 Add a preview playground redirect page (#5321)
* Add a preview playground redirect page

* Finish the code

* Third time’s the charm

* Use location.replace instead

* Add playground redirect link to PR template

* Formatted with latest Prettier :)

https://deploy-preview-5259--prettier.netlify.com/playground/#N4Igxg9gdgLgprEAuEAeAhAEQPIGEAqAmgAoCiABABYwC2ANgHwA6Uq19zrlcAhgCady5VDTgwe5MJR4AnAM5iAvExABXGADMAtAA4Vg4TACWMOnAYAlOHyMy4YY1ADmgMgJUAemOnzLD936cqABGEHwAngZsAIyW1rb2jq5+MSxCqAAOsTZ2DkbO5GEQquQwECXc5Dzp6TIQNUY88OTpdDxhTrWqUHwAdOQAkhrlcOR22QnkfBBwclCAmAQw5ADuEDIA1gA0whKUdhrKIABWPABuPHJgMkbpMEiURnKlMmE9QTxgawAUAJT6TmVvD4lMowCrECweHgMSrdSR0IxA0EjKo1OpXRojeFQNY9DyZVLCC5XG4GISQKCPcg0RpSciKcjuAB61Bg6TkSCYTHcnPcThMlFUQU5PUgNB5NTExjgMnFdhgUplXPSqjodB5n05fAA1N93D04AAPeyfKZgVSiWA9PbSuwyX5QIRCIxDT7UmC09D0qAqujfcjAAmOyTQSkAbXcACpyKoZHRyBH3FsagBdOlUmmUQOOugQMCNIzQK1wFrvOCfAAGLLZSHc7j4xZzYS0EpORjgSy0ABJgDUAL5aZtyhU9KBieEaF6i9wl9qdbrl+1B3vkOB0BT+rNkkOLVdp03mhAwEV2DGkMwWmCfADk6Svi6DK7oPXgBpguGg8FgafL+Aq1pktrkAAqhYAAy5CfN2+4XkWGg2tKvZ+ks5zkFAECLDkEBOFARgAF7WH0ADKqzPOQSAVpuky5gelohOEPQoggfC4PcdB8J8q73kIvYEh4RLXDAgTuHRES+O47CMCAGwgHUxghsgoCyLUSzELICByMgICnBARh8FJIBBDI7xrGIhHpO8eROMgMAyKocDSRJADq9zwHI5lgHAhHqSYRitjAYSaWAcgadJeQKDIMDEEZTjUsgGg8Gu9lHHIBoAEJGR8pk8KIoF5HAcUJQo0nmfI0qaRJ+n1LAjm6aCyA6AADMVtQKI5RnpJpErhSc+XSXYACOqjxFFPAxTwBWJdJCg0EY1m2UlciWWYACKqjoflSDxZNIDiEENV8HVSAAEzSTZPBGFiTjvjQsUoGho76aoCj4DwQQaZthVwL2vZAA

* Add a GIF
2018-11-05 00:11:08 +02:00
Jed Fox 6a174654a4 Fix indentation of block comments where every line starts with a star (#5206)
Previously this was done only for JSDoc comments. Now it's done in a few additional cases.
2018-10-23 21:04:24 +02:00
Jed Fox b61fec6091 Fix <Language showName /> prop type (#5265)
There isn‘t a `boolean` prop type, so this was throwing an error when Netlify built the site.
2018-10-14 08:03:35 -04:00
Jed Fox 65b2454dd8 Improved object-break heuristic (#5205) 2018-10-12 12:45:30 -04:00
Jed Fox e9cde7d8d4 Adjust badges on the README (#5189)
* Fix spacing around badges

* Switch the npm downloads badge to weekly

I switched to a weekly statistic since it feels more immediate and “9M/m” is somewhat confusing.
2018-10-05 14:06:53 -04:00
Jed Fox 59720392c3 Add support for timeouts passed as integers to test functions (#5085)
* Add support for timeouts passed as integers to test functions

* ;
2018-09-13 06:08:47 -04:00
Jed Fox a687b9383b Add a label that exempts issues from auto-locking (#4987)
* Add a label that exempts issues from auto-locking

* Exempt the “awaiting response” label so people can always reply and have their issue reopened
2018-08-19 07:33:20 -04:00
Jed Fox a3ab95abe9 Add a pull request template (#4825)
* Add a pull request template

* Run Prettier

* Address review comments

* ’

* If
2018-08-03 06:28:10 -04:00
Jed Fox 60f1e1d37b Remove code removing a key I removed from package.json (#4859) 2018-07-17 16:11:48 -04:00
Jed Fox dc362c212d Report test summaries to CircleCI (#4704)
* Report test summaries to CircleCI

* Don’t run jest-junit on Node <6

(it uses default function parameters)

* Address @lydell’s comment

* Use @duailibe’s suggestion

* 🔥 `jest-junit` key in production package.json

* Move config to jest.config.js
2018-07-07 12:11:04 -04:00
Jed Fox 02e0bdc130 A few changelog updates (#4702)
* Update CHANGELOG.md

* s/link/diff/; shorten a few SHAs; add missing diff link
2018-06-15 16:43:25 -04:00
Jed Fox 1669a7b38b Redirect the broken 1.13 blog link to the correct one (#4570)
* Redirect the broken 1.13 blog link to the correct one

https://twitter.com/prettiercode/status/1000819715374272515

* Redirect the broken 1.13 blog link to the correct one

https://twitter.com/prettiercode/status/1000819715374272515

* Revert "Rename 2018-05-27-1.13.0.md to 2018-05-23-1.13.0.md"

This reverts commit bce668af05.

* Fix redirect target
2018-05-28 07:24:09 -04:00
Jed Fox a1e8d586ad Add a single test suite for blank files in all parsers (#4562)
* Add a single test suite for blank files in all parsers

The parsers that don’t yet support blank files have been filtered out of the list until they do.

* Don’t directly `require()` Prettier

* Update `require`

* Add missing Babylon parser

* Update snapshots
2018-05-27 08:22:25 -04:00
Jed Fox 9155fe5018 Rename all uses of frontmatter to frontMatter or front-matter (#4519) 2018-05-21 10:02:09 -04:00
Jed Fox fa079c33ff Badge maintenance (#4500)
* Add CircleCI badge to readme

* Improve badge alt text

* Remove unnecessary space

* Disambiguate the two build|passing status badges
2018-05-18 09:46:50 -04:00
Jed Fox dc68a3d9a6 Break link definitions onto multiple lines when needed (#3531)
* Break link definitions onto multiple lines when needed

* Simplify the conditional for breaking the title

* Don’t print the title if it’s blank

* Revert "Don’t print the title if it’s blank"

This reverts commit 2a8d0dd9995a2e5ab8e6d888c07b88dda058637f.

* Add another test

* Fix title printing

* Second time’s the charm

* Third time’s the charm?

* Fix snapshot

* Prettify

* Don’t break unless `proseWrap` is `always`

* Test `proseWrap: never` on link references
2018-05-14 06:17:37 -04:00
Jed Fox c37861d08b Add a redirects file (#4321)
* Add a redirects file

* Remove non-working redirects
2018-04-26 11:41:52 -04:00
Jed Fox 63a2ded4c9 Never print a semicolon after export default interface Foo {} (#4128)
* Never print a semicolon after `export default interface Foo {}`

* Add test
2018-04-11 06:38:02 -04:00
Jed Fox 78a4f51662 Wrap ternaries in Flow typecasts in parens (#3940)
* Wrap TypeCastExpression in parens

* Tests
2018-02-14 11:19:39 +00:00
Jed Fox 87ed835095 Remove unnecessary quotes from YAML configuration files (#3969)
* Remove unnecessary quotes from users.yml

* Remove unnecessary quotes in editors.yml

* Remove unnecessary quotes in languages.yml
2018-02-14 01:52:55 +00:00
Jed Fox 114895a8a2 Link to the plugin docs in the README (#3762) 2018-01-18 08:54:36 +11:00
Jed Fox b92f1cd0ae Use an SVG <object> tag to allow the Twitter button to be interactive (#3739)
* Use an SVG <object> tag to allow the Twitter button to be interactive

The interactive button links you to a page to follow the user directly, so I also added a direct link to the profile.

* Lint
2018-01-15 09:02:30 -05:00
Jed Fox 9a1b57587d Add 1.10 blog post (#3659)
* Add 1.10 blog post

Copied from releases page

* Change a few things

* Add overview of changes

* Lint docs

* Scaffold out release notes

* Add prettier-ignores

* docs: add missing references

* docs: fix heading level

* docs: fix example

* Document plugin API

* Use shellsession

* docs: fix example

* docs: fix links

* Fix heading level

* change: ts upgrade -> numeric separator support

Instead of mentioning we updated the typescript version, we should emphasize on what value we added to users

* Fix repeated phrase

* add comment type annotation explanation

* Add note on no more wrapping () JSX elements

* Grammar

* Add more release notes

* Fill out remaining release notes

* Fix lint

* Add verb

* Fix heading level

* Update 2018-01-10-1.10.0.md

* Update 2018-01-10-1.10.0.md

* Add twitter buttons

* docs: add note for #3694

* Fix cake
2018-01-10 23:03:39 +11:00
Jed Fox dc4e44968f Follow redirects in the user URLs (#3672)
(except the ones redirecting to `/en/` or similar)

Also remove trailing slashes on domains
2018-01-08 10:32:33 -05:00
Jed Fox 1a3248bbc2 Change the changelog link to link to prettier/prettier (#3564)
* Change the changelog link to link to prettier/prettier

* Fix changelog links

* Double quotes
2017-12-26 00:04:02 -05:00
Jed Fox 3ef89b5fa1 Merge pull request #3562 from j-f1/patch-1
Make the playground header fit in with the rest of the site
2017-12-24 13:36:50 -05:00
Jed Fox 9cbaecbb1e Link the version text to the PR or changelog entry 2017-12-24 12:05:54 -05:00
Jed Fox eb30207fe5 Remove the v marker addition
It looks terrible on PRs.
2017-12-24 11:57:44 -05:00
Jed Fox 4497aa1efc Make the playground header fit in with the rest of the site
Fixes https://github.com/prettier/prettier/issues/3542.
2017-12-24 11:49:47 -05:00
Jed Fox 5ccc213a21 Conform the quotes in Markdown link titles to the singleQuote option (#3481)
* Add an option to utils.printString to use the passed string as-is

* Conform the quotes in Markdown link titles to the singleQuote option

* Don’t use destructuring

* Add some tests

* Format util.js

* Use custom string-printing logic

* Add some more tests

* Fix tests

* Address review comments

* Revert "Format util.js"

This reverts commit d2533ef7fb9231e2f733ece7decac9b923cf6941.

* Revert "Don’t use destructuring"

This reverts commit a5d3b0ac76a076e9a89cffc8cec396cabeacd1ee.

* Revert "Add an option to utils.printString to use the passed string as-is"

This reverts commit ef8e8322609ca3c2808885f3fadcd03f0790078c.

* Even more tests
2017-12-24 15:44:38 +01:00
Jed Fox 9780c00332 Update the command documentation and add types (#3494)
* Update the command documentation and add types

* Fix signatures

* Remove the <T> generic of the Doc type for easier reading

* Move the types inline with the docs

* Prettify the code; unignore the code blocks

* Put back some ignores; add more semicolons;
2017-12-19 10:17:35 +11:00
Jed Fox 7d9f71d488 Add root: true to .eslintrc.yml (#3519) 2017-12-18 23:46:28 +11:00