Commit Graph

2219 Commits (1b09fde361a0694cf34d485c046bed885e75141d)

Author SHA1 Message Date
Adishwar Rishi cba0a4778e Add Escrow to the list of users (#3857) 2018-02-01 01:40:23 -07:00
Simon Lydell 0c6253d1cf
Tweak rationale.md and remove outdated/incorrect stuff (#3853) 2018-02-01 07:47:05 +01:00
Lachlan Campbell 8d5863f408 Add Hack Club to user showcase (#3856)
* Add logo

* Add Hack Club to user showcase
2018-02-01 14:03:38 +08:00
Lipis 0424733f72 docs: Same format for both options (#3849) 2018-01-31 19:46:27 -05:00
Andrew Boyton d51b76855d Add Freelancer to the list of users (#3854)
We love Prettier and have been using it for a while now.
2018-01-31 16:58:28 -05:00
Lucas Duailibe aac38fca49 Force break if comment in return argument (#3665)
* Force break if comment in return argument

* add test case
2018-01-31 12:00:29 -05:00
Vlad Holubiev a3b973c245 Add Shelf to Users Page (#3851) 2018-01-31 15:47:21 +01:00
Lipis 7a7eb17082
fix: Proper case for Prettier, JavaScript, TypeScript, GitHub, Less (#3848) 2018-01-31 11:56:05 +01:00
Lipis 8641a9a9c5 Ignore package-lock.json (#3840)
* Ignore package-lock.json and yarn-error.log
2018-01-31 19:51:03 +11:00
Evilebot Tnawi ed5f68844f
fix(css): scss `global` flag (#3844) 2018-01-30 17:53:37 +03:00
Evilebot Tnawi 22ba2bcb64
fix(css): don't remove semicolon in `less` ruleset declaration (#3841) 2018-01-30 14:16:07 +03:00
Evilebot Tnawi 386e2a9bd4
tests(css): attr function (#3825) 2018-01-30 14:06:52 +03:00
Salem 8c792121f2 Treat define calls like require (#3830)
* Treat define calls like require

See issue #3829. This commit keeps define calls as a unit when possible,
to prevent an extra indent in the body of an AMD-style define.

Rather than adding the "define" check in the same case as the existing
"require" check, I added a separate condition to explicitly call out the
fact that this checks for both AMD and CommonJS modules.

`yarn test -u` yields no changes, and `yarn lint` passes successfully.

* Added tests for define and require amd formatting

This tests the solution for issue #3829.

* Add babylon interpreter to require-amd test

* Merge require and define checks
2018-01-29 16:44:32 -05:00
Ika 84c603623d
feat: support external options (#3775)
* refactor: wrap

* refactor: replace

* refactor: replace

* refactor: replace

* refactor: extract

* refactor: logger

* refactor

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* feat(support): add `showInternal` option

* refactor: use internal

* refactor

* refactor: extract

* refactor: extract

* refactor

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: reorder

* refactor: remove unnecessary

* refactor: reorder

* refactor: move

* refactor

* refactor

* refactor

* refactor: remove unnecessary

* feat: external options from CLI

* refactor: push/pop plugins

* feat: external options from config file

* refactor: remove unnecessary

* refactor

* refactor

* refactor

* fix: use `json-stable-stringify`

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: move

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: extract

* refactor: move

* refactor: extract

* docs: add comments

* refactor: sort

* refactor: sort

* refactor: rename

* refactor: remove unnecessary

* style: remove trailing whitespace
2018-01-28 00:24:25 +08:00
Ika b529c634d1
fix(markdown): print multiline content correctly in footnoteDefinition (#3787)
* fix(markdown): print multiline content correctly in footnoteDefinition

* refactor: replace `ifBreak(line)` with `softline`

* refactor: fix linting
2018-01-27 00:48:47 +08:00
Evilebot Tnawi 640ffa949d
tests(css): `font-face` at rule (#3826) 2018-01-26 15:53:08 +03:00
Evilebot Tnawi e3369db2c1
fix(css): handle namespace in attribute selector (#3810) 2018-01-26 13:00:20 +03:00
Ika 03292a6488
fix(javascript): ternary with `--use-tabs` (#3745)
* test: add test cases

* test: add test cases

* fix(javascript): ternary with `--use-tabs`

* chore: add istanbul ignore comment

* fix: remove unnecessary condition

* docs(commands): update `align`

* fix: do not transform the middle part

* refactor: markAsRoot

* fix: print tabs in sub-ternaries

* docs(commands): update

* test: add a cool test case
2018-01-26 10:02:42 +08:00
Evilebot Tnawi acf5e66408
tests(css): prefixes property (#3822) 2018-01-25 15:56:28 +03:00
Evilebot Tnawi e90f766459
tests(css): `viewport` at rule (#3817) 2018-01-25 14:59:38 +03:00
Evilebot Tnawi ca949a46d2
tests(css): `supports` at rule (#3816) 2018-01-25 12:53:34 +03:00
Zach Gawlik 5e43ff9ac2 Fix malapropism in commands docs (#3820) 2018-01-24 23:55:58 -07:00
Evilebot Tnawi a3bf378259
fix: handle YAML front matter block (#3802) 2018-01-24 19:44:09 +03:00
Evilebot Tnawi 5008836dc2
fix(css): remove whitespaces before ":" in scss maps (#3814) 2018-01-24 18:48:54 +03:00
Evilebot Tnawi b48fb2015a
tests(css): variables (#3813) 2018-01-24 17:00:02 +03:00
Evilebot Tnawi 2b300a0f40
tests(css): namespace at rule (#3811) 2018-01-24 16:27:02 +03:00
Evilebot Tnawi 4bffe76a42
tests(css): function parens (#3809) 2018-01-24 16:06:05 +03:00
Evilebot Tnawi 4c90608d11
fix: keep space between deep selector `>>>` (#3792) 2018-01-24 14:53:22 +03:00
Evilebot Tnawi 7797c93489
fix(css): ignore `media` params with scss interpolation (#3801) 2018-01-24 12:31:30 +03:00
Evilebot Tnawi d3004b51ea
feat: remove extra spaces in `url` inside `@import` (#3793) 2018-01-23 23:33:19 +03:00
Evilebot Tnawi d1f9598d68
tests(css): newlines around multiple and combinator selectors (#3800) 2018-01-23 21:12:45 +03:00
Evilebot Tnawi fc200c9432
fix(css): remove other types of whitespace in `clean` (#3799) 2018-01-23 20:57:23 +03:00
Evilebot Tnawi a52747eaec tests: multiple selector (#3796) 2018-01-23 10:35:00 -05:00
Evilebot Tnawi 11dd57e8ff tests: parens spaces (#3795) 2018-01-23 10:34:36 -05:00
Brian Ng a8fb1863a2
Merge pull request #3797 from prettier/feat-css-lowercase-wide-keywords
feat(css): lowercase wide keywords
2018-01-23 09:33:01 -06:00
Evilebot Tnawi b2e8c6d374 feat: remove extra spaces in attribute selector (#3794) 2018-01-23 10:30:20 -05:00
evilebottnawi 591ee5a425 feat(css): lowercase wide keywords 2018-01-23 18:10:39 +03:00
Evilebot Tnawi 3bc3e801c8
tests: `scss` syntax (#3757) 2018-01-23 14:33:18 +03:00
TheDancingCode ea5bfb44e4 Fix tests on windows (#3785) 2018-01-22 11:20:50 -07:00
TheDancingCode b0ad6ec9c3 Fix deprecation warning from Github Buttons on website (#3783)
Using data-show-count instead of data-count-api.
2018-01-22 07:56:28 -05:00
Ika 08b9e07207
fix(markdown): update remark-parse to v5.0.0 (#3780)
* fix(markdown): update remark-parse to v5.0.0

* test(markdown): ensure links with entities printed correctly

* test(markdown): ensure lists  interrupted by headings
2018-01-21 12:31:30 +08:00
Evilebot Tnawi 105914e45c fix: don't handle args of `@warn` and `@error` directives as media query list (#3769) 2018-01-19 17:00:06 -07:00
Evilebot Tnawi dbb494ed30 tests: `less` syntax (#3766) 2018-01-19 16:57:57 -07:00
Evilebot Tnawi 12441eb2dd fix: don't add comma after `url` in `@import` directive (#3770) 2018-01-19 16:56:28 -07:00
Evilebot Tnawi 17b3df9b8e tests: `@media` directive (#3772) 2018-01-19 21:31:20 -02:00
Evilebot Tnawi 74d25c37f0 fix: don't change case of function name (#3768) 2018-01-19 15:39:44 +01:00
Ika dc26445e51
refactor(options): use supportOptions to generate CLI options (#3622)
* refactor(cli-constant): use supportOptions

* refactor(options): use supportOptions

* refactor(cli-util): use supportOptions

* fix: do not infer parser in multiparser

* chore: remove unnecessary package

* chore: trigger another travis build

* test: add kebab-case test to ensure no regression

* test: update snapshots
2018-01-18 15:26:27 +08:00
wonderful-panda 3f788d4fb6 fix: *.vue with `lang='tsx'` is not formatted (#3763) 2018-01-18 00:20:55 -02:00
Jed Fox 114895a8a2 Link to the plugin docs in the README (#3762) 2018-01-18 08:54:36 +11:00
Ika de6bc4448f
fix(multiparser): respect 0-indent markdown-in-js (#3676)
* fix(multiparser): respect 0-indent markdown-in-js

* fix: use literalline for 0-indent

* test: add unexpected case

* fix: 0-indent

* test: add failing test

* refactor: simplify

* fix(doc): literallines respect `ind.root`

* docs: update commands

* fix: what a magic...
2018-01-17 12:52:42 +08:00