Commit Graph

3271 Commits (e50ad942b7345caa78a681038949c6c7f99f22a3)

Author SHA1 Message Date
fisker Cheung 35b6cdcef3 Update eslint related deps (#6483) 2019-09-16 08:33:11 -03:00
fisker Cheung 71d9a08488 Minify postcss parser (#6395)
* Update webpack to v4

* add todo

* add link

* Minify postcss parser

* update yarn.lock

* chore: update yarn.lock
2019-09-16 12:13:32 +03:00
Simon Lydell 8d0ac8bb58 Update website/versioned_docs/version-stable/ 2019-09-14 13:11:52 +02:00
fisker Cheung 5ce16eaa02 Update linguist-languages to v7 (#6367)
* Update linguist-languages to v7

* Trigger build

* Update

* replace `includes` with `indexOf`

* fix `exclude`

* add `nodejs` back
2019-09-14 00:57:16 +03:00
fisker Cheung 370e827217 Update webpack to v4 (#6366)
* Update webpack to v4

* add todo

* add link
2019-09-14 00:55:30 +03:00
Ramy Majouji e83b4537fe Optimize Images (#6472)
* Optimize PNGs and SVGs

Ran all images through SVGO and ImageOptim. No design changes and no lossy compression.

* Add Font Smoothing

* --pretty --indent 2

* Update prettier-centered-logo-static.svg
2019-09-12 22:31:18 +03:00
Jack Bates af3084a63f Plugins can have falsy default options (#6348) 2019-09-12 18:52:48 +03:00
Matthew Leffler ee43140f2c Fix docs lint error (#6474) 2019-09-12 17:21:07 +03:00
Lipis 2e8690a2a9
Rename 2019-09-16-1.19.md to 2019-09-16-1.19.0.md 2019-09-12 01:37:25 +03:00
Lipis 80df0fe793
Create 2019-09-16-1.19.md 2019-09-12 01:36:53 +03:00
Sosuke Suzuki 8e8411b7c7 Fix lint error (#6465) 2019-09-11 13:10:44 +03:00
Sosuke Suzuki 3f89bba231 JavaScript: Fix formatting on long named exports (#6446)
* Modify to put specific export inline

* Add tests

* Fix tests

* Modify to support default exports

* Update CHANGELOG.unreleased.md

* Modify to refactor

* Add pr link

* Modify to rename "content" -> "printed"

* Modify to define canBreak helpter

* Fix from linter

* Update CHANGELOG.unreleased.md

* Add tests
2019-09-11 12:10:34 +03:00
Lipis 9f5bd298db
website: Update dependencies on website (#6455)
* website: Update dependencies on website

* Update website/pages/en/index.js

Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-09-07 19:38:14 +03:00
Sosuke Suzuki 8f0fdba4ba JavaScript: Fix ugly formatting parens wrap binary expressions… (#6441)
* Modify to break specific call expression correctly

* Add tests

* Update CHANGELOG.unreleased.md

* Add tests

* Fix tests

* Add pr link
2019-09-07 14:46:00 +02:00
Kevin Gibbons fd6ad2a623 handle empty object param patterns with type annotations (#6438)
* handle object patterns in function parameters with type annotations

* fix lint

* update changelog
2019-09-05 21:56:30 +02:00
Georgii Dolzhykov ff9b2b6cb5 HTML: treat scripts as blocks (not inline) (#6423)
* HTML: treat scripts as blocks (not inline)

Fixes #6393

Signed-off-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

* update CHANGELOG.unreleased.md
2019-09-05 20:24:20 +02:00
Ivan Pazhitnykh 223443c057 Playground: Fix "Report issue" 414 bug (#6409) 2019-08-30 22:30:36 +02:00
Sosuke Suzuki 2523a017aa JavaScript: object destructuring with parameter decorators (#6411) 2019-08-30 07:07:00 +02:00
dependabot[bot] 7c47135f61 Bump mixin-deep from 1.3.1 to 1.3.2 (#6432)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-29 20:15:35 +02:00
Sosuke Suzuki 77e79bbfa5 TypeScript: Fixed to break line and add a semi in one execution on one line long mapped types (#6420) 2019-08-29 20:14:45 +02:00
dependabot[bot] a8d75a1464 Bump mixin-deep from 1.3.1 to 1.3.2 in /website (#6431)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-29 07:02:13 +02:00
Brian Ng 8a4b34d2a4
Add changelog entry for ?? precedence update (#6430) 2019-08-28 15:03:41 -05:00
Kevin Gibbons 01dc7aec65 fix: more readable parentheses for new-call (#6412) 2019-08-28 13:50:24 +03:00
Simon Lydell 2827543154
Improve overrides documentation (#6416)
Refs. #6415.
2019-08-27 07:09:12 +02:00
dependabot[bot] 5c976c4636 Bump eslint-utils from 1.3.1 to 1.4.2 (#6421)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-27 07:08:46 +02:00
Shinigami 2f40dba317 Remove alpha from plugin pug (#6408) 2019-08-21 19:18:04 +02:00
Christopher Chedeau 43d03209d2
Update ?? precedence to match stage 3 proposal (#6404)
The spec was updated ( https://tc39.es/proposal-nullish-coalescing/ ) with the following two changes:
- ?? has lower precedence than ||. (previously equal)
- ?? cannot immediately contain, or be contained within, an && or || operation. (parens are now required)

The safe way to upgrade is to run prettier with just this change so that parenthesis are properly added. Then to upgrade the parser (only flow supports the new precendence in the next release, babel hasn't been updated yet) in prettier so that the new precedence is being used. Failure to do so will result in parse errors because of missing parenthesis so we will not have silent errors.

There was only 44 callsites mixing || and ?? in a confusing way in the Facebook codebase so it shouldn't be a huge deal in practice.
2019-08-20 14:26:21 -07:00
Beau Fabry 2314640485 include renames in git pre-commit hook (#6371) 2019-08-15 12:34:19 +03:00
JounQin 68d3e74afe fix(mdx): text with whitespace after JSX trim incorrectly (#6340) 2019-08-14 13:45:59 +03:00
Simon Lydell b9cbca9ece Update website/versioned_docs/version-stable/ 2019-08-12 19:17:55 +02:00
Simon Lydell 26c835c60c Update option philosophy (#6387)
... to more closely align with what we’ve learned the past 3 years.

Note: These are not my personal opinions. It’s my attempt at distilling
internal core discussions into a short document.
2019-08-12 18:25:45 +03:00
fisker Cheung 7829caa818 Fix `.eslintrc.yml` code style (#6388) 2019-08-12 18:23:13 +03:00
Kepler Sticka-Jones e773cfbf12 docs: add jest-runner-prettier to related projects (#6383) 2019-08-12 10:39:08 -03:00
Dirk Schürjohann 6d6d57f2a4 docs: webstorm info on how to watch partials (#6384)
Since file watchers ignore partials like `_component.scss` (underscore!) when imported in some `main.scss`, they won’t be prettified. Use the `COMPILE_PARTIAL=true` environment variable to also watch and prettify partials.
2019-08-12 10:38:42 -03:00
Cyrille David dd64842375 chore(Handlebars): Refactor test suite (#6378) 2019-08-12 10:35:13 -03:00
Chris Brody 4b96097a8d get-stream@4.1.0 update in package dependencies (#6372) 2019-08-09 16:42:02 +03:00
Sosuke Suzuki 9e5a5435a1 fix(TypeScript): specific union type breaks after opening parenthesis, but not before closing (#6307) 2019-08-08 16:48:37 +03:00
Sosuke Suzuki ce366f0834 fix(JavaScript): bug when arrow fn as function parameter with newline (#6301) 2019-08-08 16:06:28 +03:00
Sosuke Suzuki d66c5f82da fix(HTML, Vue): don't break the template element included in a line shorter than print-width (#6284) 2019-08-08 15:18:37 +03:00
Jack Bates 38450587fe Delete .config.json.swp (#6363) 2019-08-08 15:02:47 +03:00
fisker Cheung 494e3b7428 Update babel (#6368)
* Update `@babel/core` & `@babel/preset-env` to latest

* Update `@babel/code-frame`
2019-08-08 15:00:42 +03:00
fisker Cheung c5cf747b26 Update rollup to v1.19.4 (#6365) 2019-08-08 13:23:04 +03:00
fisker Cheung 0e77cd3d33 Update ESLint to v6 (#6364) 2019-08-08 13:21:32 +03:00
kamilic 7d0175ca90 feat: implement --vue-indent-script-and-style mentioned at pr-#… (#6157)
* feat: implement --vue-indent-script-and-style mentioned at pr-#6077

* docs: --vue-indent-script-and-style

* update new test case

* feat: playground for --vue-indent-script-and-style

* chores: Revert package.json version

* Remove noisy snapshots
2019-08-01 11:06:12 +02:00
JounQin e5fbef238d docs: fix possible typo AFAIK (#6341) 2019-07-30 11:48:14 +02:00
JounQin 998f98aade fix: Adjacent JSX elements should be allowed in mdx (#6332)
* fix: adjacent JSX elements should be allowed in mdx

* chore: update CHANGELOG.unreleased.md for PR

* fix: adjacent JSX elements format issue of line

* fix: get html text from ast correctly

* fix: self closing issue

* fix: finally find out how to get original text from position

* chore: reset unnecessary changes

* fix: additional text after jsx should also be allowed

* fix: regression of empty text

* docs: add missing links

* fix linting...
2019-07-29 14:32:24 +03:00
Niklas Higi 788bd7afcd Link to `fast-glob` instead of `glob` in docs (#6333) 2019-07-28 09:43:06 +03:00
Gabriel Harel 48697e9237 Handle missing cache directory for changedCache (#6327)
* handle missing cache directory for changedCache

* fallback to temp dir when cache dir not found
2019-07-26 13:03:26 -03:00
Gabriel Harel 6fae09b67e Add --only-changed flag to CLI (#5910) 2019-07-22 11:17:24 -03:00
Matt Kane 7286413ee5 Add JSON script types (#6293)
* Add JSON mimetypes

* Use endsWith

Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>
2019-07-22 16:48:03 +03:00