Commit Graph
3362 Commits
Author SHA1 Message Date
fisker Cheung 57f0dd56dd Replace indexOf with includes (#6967)
* Replace `indexOf` with `includes`

* Add `unicorn/prefer-includes`
2019-11-17 11:06:14 +01:00
Lipis 93c63fde18 Merge branch 'master' into next 2019-11-15 15:50:01 +01:00
Evilebot Tnawi a9217a76e5 fix: tests for empty type parameters in TS (#6960) 2019-11-15 12:10:13 +02:00
Gustav Tiger e76ce2725b Fix MDX html parsing errors (#6949)
* Fix MDX html parsing errors

For MDX wrap JSX parsing in a fragment before sending it of to babel for
parsing and formatting. In MDX adjacent JSX tags are permitted in the
root.

An option sent to the babel parser omits printing the root fragment and
instead just prints its children.

Solves #6943

* an attempt to address JounQin's comments

* use <$>...</$> instead of <>...</>

* refactoring
2019-11-15 12:01:58 +02:00
Evilebot Tnawi 61a2482c48 fix: issue #6813 (Zero-based lists are broken) (#6852) 2019-11-14 20:59:20 +03:00
fisker Cheung 98ec2c4512 Style: use async functions (#6935) 2019-11-14 18:23:06 +01:00
fisker Cheung ab88423a4a Disable trailingComma for Angular internal parser (#6912) 2019-11-14 17:06:45 +01:00
fisker Cheung 584fc5920b Update snapshot-diff to v0.6.1 (#6955)
* update `snapshot-diff` to 0.6.1

* update snapshot
2019-11-14 13:14:23 +03:00
ark120202 4ed5253509 Don't lowercase element names in CSS selectors (#6947)
Fixes #5788.
2019-11-13 18:13:55 +01:00
fisker Cheung e44c360c62 Update build scripts to target Node.js 10 (#6908) 2019-11-13 18:08:40 +01:00
Simon Lydell 44b819144b Support string-to-package config in JSON schema: (#6941)
Prettier supports having just a string in the config file to use a
shared config from a package. Example:

    "@company/prettier-config"

But the JSON schema generated by running `node
scripts/generate-schema.js` did not include that possibility.

See https://github.com/SchemaStore/schemastore/pull/855 for more
information.
2019-11-13 17:45:59 +01:00
Lucas Duailibe b00e241b13 Rename SECURITY.md to .github/SECURITY.md 2019-11-13 11:54:11 -03:00
Lucas Duailibe 7f661636a0 Create SECURITY.md 2019-11-13 11:53:46 -03:00
Kevin Deisz a3078a4a61 Add the XML plugin to the docs (#6944) 2019-11-13 09:51:11 +01:00
Sosuke Suzuki 9b37dca0e9 TypeScript: Fix formatting of type operators as arrow function… (#6901) 2019-11-12 19:13:03 +01:00
fisker Cheung 11d032365e SCSS: don't add extra comma after last comment in map (#6918) 2019-11-12 19:09:46 +01:00
Nick McCurdyandJed Fox 37846a70b1 Remove typescript-etw from build (#6919)
Co-authored-by: Jed Fox <git@twopointzero.us>
2019-11-12 17:46:28 +01:00
Panayiotis Lipiridis fe8f52a88c Merge branch 'next' of github.com:prettier/prettier into next
* 'next' of github.com:prettier/prettier:
  Drop Node.js 4 test on CI (#6907)
2019-11-12 13:25:21 +01:00
Panayiotis Lipiridis f7c772f9d1 Merge branch 'master' of github.com:prettier/prettier into next
* 'master' of github.com:prettier/prettier: (31 commits)
  Bump jest-watch-typeahead from 0.4.0 to 0.4.2 (#6923)
  Bump unified from 8.4.1 to 8.4.2 (#6927)
  refactoring: Babel's error recovery superseded option combinations (#6930)
  Update `fsevents` in yarn.lock (#6909)
  Run CI on the `next` branch
  Fix bin permissions (#6902)
  Add missing headings to changelog
  Fix code block in changelog
  Bump Prettier dependency to 1.19.1
  Release 1.19.1
  Quick-fix for stdin being broken in 1.19.0 (#6894)
  Fix `since` version for `vueIndentScriptAndStyle` (#6897)
  Remove out-of-date comment
  fix formatting of union type as arrow function return type (#6896)
  Try to fix some code blocks in 1.19.0 blog post
  Blog post, changelog and docs for 1.19 (#6787)
  Bump Prettier dependency to 1.19.0
  Release 1.19.0
  prettier 1.19.0-beta.1
  deduplicate entries in yarn.lock - part 2 (#6884)
  ...
2019-11-12 13:25:09 +01:00
dependabot-preview[bot] 1a419c0ddf Bump jest-watch-typeahead from 0.4.0 to 0.4.2 (#6923)
Bumps [jest-watch-typeahead](https://github.com/jest-community/jest-watch-typeahead) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/jest-community/jest-watch-typeahead/releases)
- [Changelog](https://github.com/jest-community/jest-watch-typeahead/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jest-community/jest-watch-typeahead/compare/v0.4.0...v0.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-11 17:49:09 +01:00
dependabot-preview[bot] c0a4645295 Bump unified from 8.4.1 to 8.4.2 (#6927)
Bumps [unified](https://github.com/unifiedjs/unified) from 8.4.1 to 8.4.2.
- [Release notes](https://github.com/unifiedjs/unified/releases)
- [Changelog](https://github.com/unifiedjs/unified/blob/master/changelog.md)
- [Commits](https://github.com/unifiedjs/unified/compare/8.4.1...8.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-11 17:48:44 +01:00
Georgii Dolzhykov f99e3d9293 refactoring: Babel's error recovery superseded option combinations (#6930) 2019-11-11 17:38:29 +01:00
fisker Cheung 86548e558e Drop Node.js 4 test on CI (#6907) 2019-11-11 17:34:57 +01:00
fisker Cheung 4e49ff91a2 Update fsevents in yarn.lock (#6909) 2019-11-11 13:30:43 +03:00
Jed Fox 375d69ce01 Merge remote-tracking branch 'upstream/master' into next 2019-11-10 13:58:10 -05:00
Jed Fox 739235fe2b Merge remote-tracking branch 'upstream/master' into next 2019-11-10 13:55:55 -05:00
Jed Fox 5eb4566c30 Run CI on the next branch 2019-11-10 13:54:11 -05:00
fisker Cheung 1d1a90144f Fix bin permissions (#6902) 2019-11-09 17:42:52 +01:00
Simon Lydell b56f95c975 Add missing headings to changelog 2019-11-09 13:38:29 +01:00
Simon Lydell 15acf45c9e Fix code block in changelog 2019-11-09 13:29:18 +01:00
Simon Lydell c060b2544d Bump Prettier dependency to 1.19.1 2019-11-09 13:23:22 +01:00
Simon Lydell 95b8e54d1a Release 1.19.1 2019-11-09 13:20:32 +01:00
Simon Lydell 9b1726d3cd Quick-fix for stdin being broken in 1.19.0 (#6894)
Closes #6891.

This downgrades the get-stream package from 5.x to 4.x, which does not
use `async` functions which works around the problem of
`regeneratorRuntime` not being defined (it shouldn’t be needed).

This is an alternative solution to #6893 because I don’t know yet if we
want to enable `corejs` given that we will most likely drop support for
Node.js 8 and older in the next version.

Just like #6893 this PR comes without tests, but I verified locally that
`--stdin` works after this change.
2019-11-09 12:48:56 +01:00
Simon Lydell 6cba8ceb9e Fix since version for vueIndentScriptAndStyle (#6897)
See #6887.
2019-11-09 12:48:24 +01:00
Simon Lydell b091fd3b59 Remove out-of-date comment 2019-11-09 12:12:31 +01:00
Georgii Dolzhykov 58c6b42aa8 fix formatting of union type as arrow function return type (#6896) 2019-11-09 11:47:54 +01:00
Simon Lydell 8c3efeb9df Try to fix some code blocks in 1.19.0 blog post 2019-11-09 01:44:53 +01:00
Simon Lydell 4eb3e2650a Blog post, changelog and docs for 1.19 (#6787) 2019-11-09 01:23:57 +01:00
Simon Lydell 98d27c7de2 Bump Prettier dependency to 1.19.0 2019-11-09 01:14:31 +01:00
Simon Lydell e788e8d3d5 Release 1.19.0 2019-11-09 01:09:19 +01:00
Simon Lydell 057e15d50d prettier 1.19.0-beta.1 2019-11-09 01:03:57 +01:00
Georgii Dolzhykov 3fb111a48c deduplicate entries in yarn.lock - part 2 (#6884) 2019-11-09 00:12:32 +01:00
Georgii Dolzhykov 10c5c377f5 deduplicate entries in yarn.lock (#6882)
* deduplicate entries in yarn.lock

* revert changes for @babel/code-frame
2019-11-08 23:43:34 +01:00
Georgii Dolzhykov 361fd2dbfa fix printing bigint literals parsed by Flow (#6883) 2019-11-08 23:06:54 +01:00
Georgii Dolzhykov ea70396a05 Fix lost adjacent JSX when using Babel (#6881)
Bump @babel/parser to 7.7.3. Otherwise Prettier formats "<a/><b/>" to "<a/ >;".
2019-11-08 22:31:31 +01:00
Justin Ridgewell 7959b12101 Don't require parens for same-operator logical expressions (#6864)
Multiple same-operator logical expressions do not require parentheses to disambiguate.
2019-11-08 21:25:38 +01:00
fisker Cheung 3618361e56 Update codecov to v3.6.1 (#6876) 2019-11-08 19:38:55 +01:00
fisker Cheung e1d30d6337 Update @babel/core to v7.7.2 (#6877) 2019-11-08 19:37:56 +01:00
fisker Cheung d865eb5eb9 Update flow-parser to v0.111.3 (#6878) 2019-11-08 19:37:41 +01:00
fisker Cheung ec659471b1 Update @rollup/plugin-replace to v2.2.1 (#6879) 2019-11-08 19:36:27 +01:00