Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript: Fix specific union type breaks after opening parenthesis, but not before closing #6307

Merged
merged 5 commits into from Aug 8, 2019

Conversation

sosukesuzuki
Copy link
Member

Fix #6303

Union types put with [](array), as, keyof, |, & breaks after opening parenthesis, but not before closing.

// Stable
const foo = [abc, def, ghi, jkl, mno, pqr, stu, vwx, yz] as (
  | string
  | undefined)[];

const foo: (
  | AAAAAAAAAAAAAAAAAAAAAA
  | BBBBBBBBBBBBBBBBBBBBBB
  | CCCCCCCCCCCCCCCCCCCCCC
  | DDDDDDDDDDDDDDDDDDDDDD)[] = [];

const foo: keyof (
  | AAAAAAAAAAAAAAAAAAAAAA
  | BBBBBBBBBBBBBBBBBBBBBB
  | CCCCCCCCCCCCCCCCCCCCCC
  | DDDDDDDDDDDDDDDDDDDDDD) = bar;

const foo:
  | foo
  | (
      | AAAAAAAAAAAAAAAAAAAAAA
      | BBBBBBBBBBBBBBBBBBBBBB
      | CCCCCCCCCCCCCCCCCCCCCC
      | DDDDDDDDDDDDDDDDDDDDDD) = bar;

const foo: foo &
  (
    | AAAAAAAAAAAAAAAAAAAAAA
    | BBBBBBBBBBBBBBBBBBBBBB
    | CCCCCCCCCCCCCCCCCCCCCC
    | DDDDDDDDDDDDDDDDDDDDDD) = bar;

// This pr
const foo = [abc, def, ghi, jkl, mno, pqr, stu, vwx, yz] as (
  | string
  | undefined
)[];

const foo: (
  | AAAAAAAAAAAAAAAAAAAAAA
  | BBBBBBBBBBBBBBBBBBBBBB
  | CCCCCCCCCCCCCCCCCCCCCC
  | DDDDDDDDDDDDDDDDDDDDDD
)[] = [];

const foo: keyof (
  | AAAAAAAAAAAAAAAAAAAAAA
  | BBBBBBBBBBBBBBBBBBBBBB
  | CCCCCCCCCCCCCCCCCCCCCC
  | DDDDDDDDDDDDDDDDDDDDDD
) = bar;

const foo:
  | foo
  | (
      | AAAAAAAAAAAAAAAAAAAAAA
      | BBBBBBBBBBBBBBBBBBBBBB
      | CCCCCCCCCCCCCCCCCCCCCC
      | DDDDDDDDDDDDDDDDDDDDDD
    ) = bar;

const foo: foo &
  (
    | AAAAAAAAAAAAAAAAAAAAAA
    | BBBBBBBBBBBBBBBBBBBBBB
    | CCCCCCCCCCCCCCCCCCCCCC
    | DDDDDDDDDDDDDDDDDDDDDD
  ) = bar;
  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If the change is user-facing) I’ve added my changes to the CHANGELOG.unreleased.md file following the template.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@alexander-akait
Copy link
Member

/cc @sosukesuzuki can you rebase?

@sosukesuzuki
Copy link
Member Author

@evilebottnawi I resolved conflicts.

@alexander-akait
Copy link
Member

/cc @prettier/core

@alexander-akait alexander-akait merged commit 9e5a543 into prettier:master Aug 8, 2019
@alexander-akait
Copy link
Member

@sosukesuzuki good job, thanks for PRs

@sosukesuzuki sosukesuzuki deleted the fix-6303 branch September 15, 2019 03:10
Shinigami92 pushed a commit to Shinigami92/prettier that referenced this pull request Oct 24, 2019
commit 2c14a7f13c0723b290f9267cdd02165b50f1e3ea
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Wed Oct 23 21:57:00 2019 +0300

    docs on whitespace sensitivity: better wording (#6699)

commit 63b450b8e69fd9dcfc79bd4e30f98e6d248a63cb
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Wed Oct 23 14:39:44 2019 +0200

    Bump terser-webpack-plugin from 1.4.1 to 2.1.3 (#6654)

    Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 1.4.1 to 2.1.3.
    - [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
    - [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.4.1...v2.1.3)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit df45e12c5c9083fee03c56297781f2b15da63609
Author: Kai Cataldo <7041728+kaicataldo@users.noreply.github.com>
Date:   Wed Oct 23 07:56:59 2019 -0400

    API: add resolveConfig option to getFileInfo() (#6666)

    * Add useConfig option to getFileInfo()

    * useConfig -> resolveConfig

commit 7f68db8e88adc951b996490a7e16a8aea6faa76a
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Tue Oct 22 22:05:10 2019 +0900

    JavaScript: arguments with object contains newline in arrow function (#6382)

    * Modify to fix arguments with object contains newline in arrow function(nested)

    * Update CHANGELOG.unreleased.md

    * Update tests

    * Modify to refactor

    * Modify to refactor

    * Add pr number and link

    * Update CHANGELOG.unreleased.md

    * Modify to remove unnecessary null checking

    * Fix for ArrayPattern

    * Fix for RestElement

    * Fix for AssignmentPattern

    * Update tests

    * Fix for nested array and object

    * Update tests

    * Fix for nested array pattern

    * Update tests

    * Modify to discard unnecessary node type check

    * Fix for rest element

    * Fix for array in rest

    * Fix for array in assignment pattern

    * Update tests

    * Fix for CallExpression with Assignment

    * Fix for ArrowFunction with AssignmentPattern

    * Update tests

    * Modify to support generally pattern

    * Update tests

    * Modify to use path.each instead of path.map

    * Fix for multi arguments

    * Fix typo, Argments => Arguments

commit a7cae47cdfb60cb5e63ab584e467f78305667145
Author: Chad Carbert <ccarbert@salesforce.com>
Date:   Mon Oct 21 23:51:41 2019 +0200

    Glimmer: Improve whitespace handling (#6354)

    * Improve curly and whitespace handling

    * Refactoring and clean up

    * Collapse elements with non-whitespace children

    * Clean selfClosing check in AST compare

    selfClosing tags can't be considered when using AST_COMPARE=1.
    The new AST may have a Glimmer component that has been collapsed,
    ie: <HelloWorld></HelloWorld> -> <HelloWorld />

    These result in different ASTs and thereofre we need to clean the
    check that compares self-closing in the before and after ASTs

    Co-authored-by: Jamie White <jamie@jgwhite.co.uk>

    * Add istanbul ignore for ternaries in utilities

    * Improve handling around whitespace near elements and block statements

    * Update tests after rebasing

    * Fix CHANGELOG.unreleased.md after rebase

    * Tweak regex around leading and trialing line beraks and update test

    Co-authored-by: FabHof <35104465+FabHof@users.noreply.github.com>

    * Extract attribute value from concat node

commit e4ab962a6db6cebf20133236fa1ed48c599b1ed4
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 21 17:34:47 2019 +0200

    Bump docusaurus from 1.13.0 to 1.14.0 in /website (#6690)

    Bumps [docusaurus](https://github.com/facebook/docusaurus) from 1.13.0 to 1.14.0.
    - [Release notes](https://github.com/facebook/docusaurus/releases)
    - [Changelog](https://github.com/facebook/docusaurus/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/facebook/docusaurus/compare/v1.13.0...v1.14.0)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 5edb0edae5be00d39c9416e376d14071aad86683
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 21 14:23:46 2019 +0300

    Bump codemirror-graphql from 0.11.1 to 0.11.2 in /website (#6689)

    Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.11.1 to 0.11.2.
    - [Release notes](https://github.com/graphql/graphiql/releases)
    - [Changelog](https://github.com/graphql/graphiql/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.11.1...codemirror-graphql@0.11.2)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit a5a33bca111e6c09a63ded1b818bce5f88523794
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 21 14:03:01 2019 +0300

    Bump codemirror from 5.49.0 to 5.49.2 in /website (#6691)

    Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.49.0 to 5.49.2.
    - [Release notes](https://github.com/codemirror/CodeMirror/releases)
    - [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/codemirror/CodeMirror/compare/5.49.0...5.49.2)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 10deb1f086d1baf41f2566d82fd8df24940929c3
Author: Selvazhagan <38141381+selvazhagan@users.noreply.github.com>
Date:   Mon Oct 21 02:38:21 2019 -0700

    Angular: closing parenthesis on a new line after ternaries passed to pipes (#5902)

commit 8a37258a3344fdf73b6824145d8aabd41db96670
Author: Zaven Muradyan <voithos@google.com>
Date:   Sun Oct 20 07:19:47 2019 -0700

    Add basic instructions on how to run Prettier locally for debugging. (#6686)

    Fixes #5887.

commit 4bd0c014fedf472f65fcfab772f11e52d4c0e23c
Author: Sean Baines <mrseanbaines@gmail.com>
Date:   Sun Oct 20 15:44:29 2019 +0200

    Fix tooltip being hidden behind browser scrollbars (#6688)

commit e1bfd2e2fc3d78f66c663f311b161e613116d693
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Fri Oct 18 15:20:55 2019 +0300

    fix playground: wrong parser shown in options on first open (#6683)

commit 3dbe4b20381c3ecc8ada39a6b9cfc902179808ce
Author: fisker Cheung <lionkay@gmail.com>
Date:   Fri Oct 18 16:36:24 2019 +0800

    Docs: add link to `devDependencies` (#6682)

commit 9a0bdf71cb6112760bf4df89e2b304222fe5003b
Author: JounQin <admin@1stg.me>
Date:   Thu Oct 17 21:45:24 2019 +0800

    feat: add support for PartialApplication (#6397)

commit 80260555c90f369fd4e9d502868c4b5233347cf9
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Thu Oct 17 14:23:14 2019 +0300

    ts: fix optional computed methods (#6673)

commit 4ba0d4e36d62a96567b3ff57e1e113747cddb457
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Wed Oct 16 23:18:53 2019 +0300

    fix spelling, wording, markup issues in CHANGELOG.unreleased.md (#6672)

commit f28faf9c048a5a591e27292bfdd2948303571bcf
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Wed Oct 16 20:11:51 2019 +0200

    Bump webpack from 4.41.1 to 4.41.2 in /website (#6671)

    Bumps [webpack](https://github.com/webpack/webpack) from 4.41.1 to 4.41.2.
    - [Release notes](https://github.com/webpack/webpack/releases)
    - [Commits](https://github.com/webpack/webpack/compare/v4.41.1...v4.41.2)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit 60d6f139a938408f660b3d9a739ce19f96387db0
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Thu Oct 17 01:53:01 2019 +0900

    Docs: update docs to follow #6665 (#6670)

commit 4750b1c25aa75ebbc7464610e8dde02bbaab98a4
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Oct 16 21:09:39 2019 +0800

    Fix an expired todo test (#6665)

    * Fix a expired todo test

    * only check TypeError

    * Throw a specific TypeError

    * fix async expect

    * use return

commit 10bd71e4781f5f39a08880cd60cdded4fb9e3c20
Author: Eric Sakmar <eric.sakmar@gmail.com>
Date:   Wed Oct 16 03:46:20 2019 -0400

    fix(js): Object destructuring in method shorthand #6515 (#6646)

commit d52021ecbfda885a00f717b7d9ecbc73236ee9ec
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Oct 16 13:08:30 2019 +0800

    Minor tweaks for build configs (#6663)

    * Minor tweaks for build configs

    * fix `@angular/compiler` path

commit b5cc13a5dfa92e9166a47b9daf8cce74daeb7722
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Oct 16 00:00:32 2019 +0800

    Remove usage of `require.extensions` in `parser-glimmer.js` (#6658)

    * Fix usage of `require.extensions`

    * try cjs build

    * update comment

commit d4537dc5f2cca7d122e0707a8fd827d2888adff1
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Tue Oct 15 18:32:46 2019 +0300

    enable the allowUndeclaredExports Babel option (#6660)

commit ab598e6e23356d51bb896e1d02dc23c0f04bea57
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Tue Oct 15 18:27:39 2019 +0300

    tests: rename duplicate bindings to be ready for #6400 (#6662)

commit 3a998df02e39c81714343d8aa50b176bb45e0446
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Wed Oct 16 00:11:48 2019 +0900

    TSX: Fix incorrectly removing parentheses around jsx elements being accessed in tsx file (#6640)

    * Modify to wrap jsx element used with member-expression in tsx

    * Add tests

    * Update CHANGELOG.unreleased.md

    * Modify to support no-inline jsx element

    * Add pr number

    * Fix from lint-docs

    * Modify to rename isTsx => isTSXFile

    * Modify to no considering file ext

    * Support JSXFragment and add tests

    * Update CHANGELOG.unreleased.md

commit c949f5ba20058d6ad5646923138ca3f06c40a514
Author: fisker Cheung <lionkay@gmail.com>
Date:   Tue Oct 15 19:48:56 2019 +0800

    Use `babel` plugin replace `includes` (#6659)

commit aa4c1cad5bc3f7082138e6f9e4f695f37a0f10ad
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 14 19:25:54 2019 +0200

    Bump @babel/preset-react from 7.0.0 to 7.6.3 in /website (#6648)

    Bumps [@babel/preset-react](https://github.com/babel/babel) from 7.0.0 to 7.6.3.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/compare/v7.0.0...v7.6.3)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit 3a8ebae57d227354f56e3a1ae4d4033b806572ec
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Mon Oct 14 18:39:36 2019 +0300

    refactoring: unify code for printing methods, remove isNodeStar… (#6637)

    * unify code for printing methods, remove isNodeStartingWithDeclare hacks

    * body is BlockStatement, not an array

    * getters and setters can't be async

    * unify printPropertyKey calls

commit 1e93fabae5f142da6696bff9c871c703dba032fd
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 14 17:23:23 2019 +0200

    Bump webpack from 4.41.0 to 4.41.1 in /website (#6649)

    Bumps [webpack](https://github.com/webpack/webpack) from 4.41.0 to 4.41.1.
    - [Release notes](https://github.com/webpack/webpack/releases)
    - [Commits](https://github.com/webpack/webpack/compare/v4.41.0...v4.41.1)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit 6ca2a1842c0480945a5d98d0c1a5839db0d802ee
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 14 17:23:12 2019 +0200

    Bump @babel/preset-env from 7.6.2 to 7.6.3 in /website (#6650)

    Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.6.2 to 7.6.3.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/compare/v7.6.2...v7.6.3)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit 977b828666a12ce5fff2ec0053360c2d33572e97
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Mon Oct 14 15:00:21 2019 +0300

    Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605)

    * get rid of TSParenthesizedType nodes before proceeding with formatting

    * fix parens for TSIndexedAccessType, TSFunctionType, TSConditionalType

    fixes #6603

    * workaround edge cases with one-item unions and intersections

    * fix parens for TSInferType

    * fix parens for rest elements in tuple types

    * refactoring

    * fix function types in conditional types

    * move tests for rest and optional tuple elements

    * fix comment issues

    * tests for unions and intersections

    * add parens around multiline unions in tuple

    * move the parens check for TS nodes closer to the one for Flow nodes

    * update CHANGELOG.unreleased.md

    * remove dead code

    * fix parens for TSConstructorType

    * better wording in CHANGELOG.unreleased.md

commit f8a4a61a6265ff398d817eece67ded0c661b473d
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Sun Oct 13 22:51:58 2019 +0300

    fix typos (#6642)

commit 02ec2337b8365f3714375185fa1219b818078d49
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Mon Oct 14 04:51:02 2019 +0900

    Modify to follow #6638 (#6645)

commit 43247c88c259feef2287eaf4a11cf52b669b3c9d
Author: Flavyoo <Flavyoo@users.noreply.github.com>
Date:   Sun Oct 13 13:15:04 2019 -0400

    Added image for Estalee and updates users.yml (#6629)

    * Added image for Estalee and updates users.yml

    * Update users.yml

    * Ran SVGO

    * Ran SVGO

commit 1435b2756c0052fd62ccc644bc2fc3cdfee8eb05
Author: David Lechner <david@lechnology.com>
Date:   Sat Oct 12 12:26:07 2019 -0500

    docs/configuration: specify order of precedence (#6638)

    This updates the docs to show the search order of the config files.

    Order comes from: https://github.com/prettier/prettier/blob/3805034bdfe45722e31a1abf019d4368dfb8ae11/src/config/resolve-config.js#L35-L44

commit 5118fc21f38d1531f56e7148cdff90ebf0cd7625
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Oct 10 18:04:38 2019 +0800

    Update `yaml-unist-parser` to support yaml@1.7.1 (#6632)

commit 4769f1139a70212078b40f0b482fc6a30c04288b
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Oct 10 18:03:28 2019 +0800

    Remove useless `rollup-plugin-node-builtins` (#6635)

commit 297be7cc31d0a3da0288b6e7fdb3dce49d966bf2
Author: Kyle Scully <scullykns@gmail.com>
Date:   Wed Oct 9 10:01:05 2019 -0700

    docs(website): add build.com to users (#6633)

commit 9805496c4d14d705b60faf06708011023cd72ed8
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Oct 10 00:10:24 2019 +0800

    Add code sample for `babel-flow` parser (#6631)

commit 282d1017f31319c04d1b2e4e7c6e92dca76945b1
Author: Ingvar Stepanyan <me@rreverser.com>
Date:   Wed Oct 9 15:29:37 2019 +0100

    Add support for V8 intrinsics via Babel (#6496)

    This plugin was recently added on Babel side and allows to parse custom syntax for V8 intrinsics.

    They don't clash with any real-world JavaScript syntax, so adding this option should be as safe as any other plugin, and would allow to format JavaScript that uses such intrinsics (e.g. code inside Node.js or V8 itself).

commit 1cc92752e51b7176a66c2af11d185e00bda71dfe
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Oct 9 20:13:13 2019 +0800

    Update `@babel/core` & `@babel/preset-env` to v7.6.3 (#6628)

commit 179943ccba91ab4afb863dc0c40c873b893a29b6
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Oct 9 19:52:11 2019 +0800

    Update `@babel/parser` to v7.6.3 (#6386)

    * fix flow_function_parentheses

    * fix directives

    * fix classes

    * fix flow_method

    * fix `do`

    * fix `decorators`

    * fix `comments_closure_typecast`

    * fix `comments`

    * fix `flow_internal_slot`

    * fix `flow_comments`

    * fix `flow_type_declarations`

    * fix `flow_type_spread`

    * fix `functional_composition`

    * fix `multiparser_js_css`

    * fix `no-semi`

    * fix `objects`

    * fix `template`

    * fix `yield`

    * update `flow_method` snap

    * fix `empty_paren_comment`

    * fix `mdx`

    * fix `object_property_comment`

    * Update `@babel/parser`

    * Update @babel/parser to v7.6.2

    * Update yarn.lock

    * fix `nullish_coalescing` test

    * fix `flow_class_field` test

    * fix snapshot

    * @babel/parser v7.6.3

    * fix tests

    * update snap

commit 7daf06f4ca81be02191a454e965a4186d3db4341
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Oct 9 01:21:31 2019 +0800

    Update `eslint` to v6.5.1 (#6627)

commit 385c2dcc4fb7ee92f36abfa8db4eb31e1a65a7c3
Author: Martin Donath <squidfunk@users.noreply.github.com>
Date:   Tue Oct 8 16:37:40 2019 +0200

    [typescript, flow]: double indent for unions inside of tuples (#6381)

commit 02cbd15ec233662a4bf0111f799518cb1de5462d
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Tue Oct 8 22:56:08 2019 +0900

    TypeScript: Fix incorrectly removes double parentheses around types (#6604)

commit affa24ce764bd14ac087abeef0603012f5c635d6
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 7 18:15:15 2019 +0200

    Bump codemirror-graphql from 0.9.0 to 0.11.1 in /website (#6615)

    Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.9.0 to 0.11.1.
    - [Release notes](https://github.com/graphql/graphiql/releases)
    - [Changelog](https://github.com/graphql/graphiql/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/graphql/graphiql/compare/v0.9.0...codemirror-graphql@0.11.1)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 6b1e0b29f39bc5ba2d0d3e750e70d18ba17936a9
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 7 18:14:19 2019 +0200

    Bump concurrently from 4.1.2 to 5.0.0 in /website (#6614)

    Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 4.1.2 to 5.0.0.
    - [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases)
    - [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v4.1.2...v5.0.0)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit 64b036f81f7bc8f910f349300ca8800077cabce3
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 7 18:11:57 2019 +0200

    Bump react-dom from 16.10.1 to 16.10.2 in /website (#6613)

    Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.10.1 to 16.10.2.
    - [Release notes](https://github.com/facebook/react/releases)
    - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/facebook/react/commits/v16.10.2/packages/react-dom)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit 838ca6610d123290d54beb3095b9e1aa2440bec9
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 7 17:35:18 2019 +0200

    Bump react from 16.10.1 to 16.10.2 in /website (#6616)

    Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.10.1 to 16.10.2.
    - [Release notes](https://github.com/facebook/react/releases)
    - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/facebook/react/commits/v16.10.2/packages/react)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

    Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

commit ed7c848f3b1de0de762c5dee772a51aca8e77f86
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Mon Oct 7 17:34:49 2019 +0200

    Bump eslint-config-prettier from 6.3.0 to 6.4.0 (#6618)

    Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.3.0 to 6.4.0.
    - [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
    - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.3.0...v6.4.0)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 13db243935c5f015797e4cddadc0da0400210372
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Tue Oct 8 00:32:10 2019 +0900

    Update CHANGELOG.unreleased.md (#6611)

commit 32dd447271db23b6d51f28f7053c7f9ebae46e56
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Thu Oct 3 23:45:03 2019 +0900

    Refactor: Move functions unrelated to printing from printer-estree.js to utils.js (#6562)

commit 6d4d6a759984c40ad2648fa17ad709c7a9830efb
Author: Evilebot Tnawi <evilebottnawi@users.noreply.github.com>
Date:   Thu Oct 3 17:21:05 2019 +0300

    revert: `--only-changed` argument (#6594)

commit 3f13d2ec1b5ef6fe90ff42fcab5d7b4f442c1128
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Oct 3 20:24:03 2019 +0800

    Support typescript 3.6 (#6519)

commit ce65fc236b729e0c347d734df8353649bcff349a
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Oct 3 19:37:37 2019 +0800

    Update all dependencies in `website/` (#6597)

commit 1aef2b13f4e577b9879c35131e0219e5dba5dc81
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Thu Oct 3 00:34:58 2019 +0900

    Website: Update documentation of `resolveConfigFile` (#6568)

commit fced57c1d68971407481247f35fd2c6b329fce4e
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 16:51:10 2019 +0200

    Bump codemirror-graphql from 0.6.12 to 0.9.0 in /website (#6592)

    Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.6.12 to 0.9.0.
    - [Release notes](https://github.com/graphql/graphiql/releases)
    - [Changelog](https://github.com/graphql/graphiql/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/graphql/graphiql/compare/v0.6.12...v0.9.0)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit f4e5d744a942a45f95cdd68b318202b66d48a009
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 15:22:03 2019 +0200

    [Security] Bump remarkable from 1.7.1 to 1.7.4 in /website (#6589)

    Bumps [remarkable](https://github.com/jonschlinkert/remarkable) from 1.7.1 to 1.7.4. **This update includes security fixes.**
    - [Release notes](https://github.com/jonschlinkert/remarkable/releases)
    - [Changelog](https://github.com/jonschlinkert/remarkable/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/jonschlinkert/remarkable/compare/1.7.1...v1.7.4)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit d96be477292b76c959a4c39665bc1f60fbd864b8
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 15:21:51 2019 +0200

    Bump babel-preset-env from 1.6.1 to 1.7.0 in /website (#6588)

    Bumps [babel-preset-env](https://github.com/babel/babel-preset-env) from 1.6.1 to 1.7.0.
    - [Release notes](https://github.com/babel/babel-preset-env/releases)
    - [Changelog](https://github.com/babel/babel-preset-env/blob/1.x/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel-preset-env/compare/v1.6.1...v1.7.0)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 68d68d4a43ba92a767e0362e658ec458ab34933a
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 15:12:24 2019 +0200

    [Security] Bump extend from 3.0.1 to 3.0.2 in /website (#6586)

    Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2. **This update includes a security fix.**
    - [Release notes](https://github.com/justmoon/node-extend/releases)
    - [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit b0a13800b7f1b18ee0b2ea74b871c7f4b4e112ea
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 15:30:26 2019 +0300

    Bump react-dom from 16.3.3 to 16.10.1 in /website (#6593)

    Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.3.3 to 16.10.1.
    - [Release notes](https://github.com/facebook/react/releases)
    - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/facebook/react/commits/v16.10.1/packages/react-dom)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit fb7957dee22f4858898567658ef7b69d6b43dbf5
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 14:26:09 2019 +0200

    [Security] Bump url-parse from 1.4.1 to 1.4.7 in /website (#6591)

    Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.1 to 1.4.7. **This update includes security fixes.**
    - [Release notes](https://github.com/unshiftio/url-parse/releases)
    - [Commits](https://github.com/unshiftio/url-parse/compare/1.4.1...1.4.7)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 5c82a0614163fc04d64cbaf21558d050cf2c5272
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 14:25:49 2019 +0200

    Bump clipboard from 2.0.0 to 2.0.4 in /website (#6590)

    Bumps [clipboard](https://github.com/zenorocha/clipboard.js) from 2.0.0 to 2.0.4.
    - [Release notes](https://github.com/zenorocha/clipboard.js/releases)
    - [Commits](https://github.com/zenorocha/clipboard.js/compare/v2.0.0...v2.0.4)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit a8d13741fd724d5efedc166c50e03ec0f91f4093
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 14:17:12 2019 +0200

    Bump concurrently from 3.5.1 to 4.1.2 in /website (#6585)

    Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 3.5.1 to 4.1.2.
    - [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases)
    - [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/3.5.1...v4.1.2)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit a65a7c38402d55b0d458c4f1fc5d2825aef90a94
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 14:16:34 2019 +0200

    [Security] Bump merge from 1.2.0 to 1.2.1 (#6583)

    Bumps [merge](https://github.com/yeikos/js.merge) from 1.2.0 to 1.2.1. **This update includes a security fix.**
    - [Release notes](https://github.com/yeikos/js.merge/releases)
    - [Commits](https://github.com/yeikos/js.merge/compare/v1.2.0...v1.2.1)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 8ed774c5dcc6d4cb510a3b68e199a8131c599cda
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 15:07:58 2019 +0300

    [Security] Bump lodash from 4.17.10 to 4.17.15 (#6581)

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.15. **This update includes security fixes.**
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.15)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 6f9d917eb30409e4be2a560d1efcfe425c3aacfc
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date:   Tue Oct 1 14:06:02 2019 +0200

    [Security] Bump extend from 3.0.1 to 3.0.2 (#6579)

    Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2. **This update includes a security fix.**
    - [Release notes](https://github.com/justmoon/node-extend/releases)
    - [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2)

    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

commit 9b1493ad92370adbe0cc3460e0173cbce211dcbb
Author: fisker Cheung <lionkay@gmail.com>
Date:   Tue Oct 1 18:54:24 2019 +0800

    Update `unicode-regex` to v3 (#6575)

commit 38ae5d5210d9d81776672f2aea00d982160c53b8
Author: Brian Kim <briankimpossible@gmail.com>
Date:   Tue Oct 1 06:53:45 2019 -0400

    Javascript: Use function literals in arguments to detect function composition (#6033)

commit b4e86b6b9a8858c1512bb679526ba9677e51ec50
Author: fisker Cheung <lionkay@gmail.com>
Date:   Tue Oct 1 07:14:34 2019 +0800

    Update `yaml` to v1.1 (#6571)

commit 7cb0c23774f4278d7d60187c6db0d8bd08e9da09
Author: Cyrille David <dcyriller@users.noreply.github.com>
Date:   Mon Sep 30 16:08:58 2019 +0200

    fix(handlebars): Use quotes from config in AttrNode (#6377)

commit 2bc15e2beda333f64bff006dbf87ebb25fa2893e
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 21:26:38 2019 +0800

    Update `string-width` to latest v3 (#6572)

commit a1cb247ae6a61a156404b89e69142423b1af33e5
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 20:14:11 2019 +0800

    Update `execa` to v1 (#6563)

commit 86a3ad890c6d56b9bdb72c5983d33640c650710e
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 20:02:55 2019 +0800

    Update `leven` to v3 (#6539)

commit c6dea424e54eb4c8ec414480914ffda71dfccc19
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:56:24 2019 +0800

    Update `builtin-modules` to v3 (#6546)

commit f2a71e48ce78bda38cc3ee8e510e915e52c5e656
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:52:39 2019 +0800

    Update `jest-docblock` to v24 (#6538)

commit 30cf1cc75ce41921aa0e93a51e9f6fac8449eaa7
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:49:39 2019 +0800

    Update `chalk` to v2.4.2 (#6529)

commit 4bf884b315ded4b5a605d6230e63501d308c78fe
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:48:20 2019 +0800

    Update `jest-watch-typeahead` to v0.3.1 (#6566)

commit 4f150d6501cd8d4d174a9c9eebda5ed42deecb62
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:47:49 2019 +0800

    Update `cross-env` to latest v5 (#6564)

commit 20b4493c31023d187c51786412669b8b28f1e39b
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:47:17 2019 +0800

    Update `mem` to latest v4 (#6565)

commit ff33515de811038b1673d60e152b4352651814c0
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:46:37 2019 +0800

    Update `graphql` to v14.5.8 (#6536)

commit 0a6e9db86ad958cd52e51956b5c0862e2ee7c6df
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:45:01 2019 +0800

    Update `diff` to v4 (#6532)

commit 76c9badfc7ce25e22a919173b5014fcf32ce8630
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 30 19:44:43 2019 +0800

    Update `esutils` to v2.0.3 (#6561)

commit b36242791ce8ac99dc62008b916b762b88d89756
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sun Sep 29 09:45:16 2019 +0800

    Update `semver` to v6 (#6543)

commit 30c399044abbbf3313e80dfbc6df586a585d47c1
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sun Sep 29 00:21:44 2019 +0800

    Update `rollup` related dependencies to latest (#6559)

commit 9c46c88a9802b59bddbd0599da5b07cfb6ce4865
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sun Sep 29 00:21:11 2019 +0800

    Update `jest-junit` to v8 (#6549)

commit 6e5cef01abf2c3b050970cf2a320059c4f9f9618
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 22:40:13 2019 +0800

    Update `remark-math` to v1.0.6 (#6556)

    * Update `remark-math` to v2

    * Update `remark-math` to v1.0.6

commit 261e7756060cbdba2389dc5f1483f11f73044e70
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 22:39:49 2019 +0800

    Update `@babel/core` and `@babel/preset-env` to v7.6.2 (#6557)

commit b69deca1dcfe8a971bfc9a2d08dc03b5f5b52fd6
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 22:35:02 2019 +0800

    Update flow-parser to v.89.0 (#6555)

commit 7f389e1f600ba7f44df30d02db049b2b5d540344
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 22:32:39 2019 +0800

    Update `shelljs` to v0.8.3 (#6552)

commit e742a1c80bb4959832887c651e03ba574769f1b0
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 22:32:18 2019 +0800

    Update `html-element-attributes` to v2.1.0 (#6537)

commit 2a995cab421aef6d4b76fbdd05a007f4a13a7902
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:45:24 2019 +0800

    Update `strip-ansi` to v5 (#6554)

commit 0610862f56be743109fdd51bb6f5054f1a747443
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:44:20 2019 +0800

    Update `dashify` to v2 (#6531)

commit d1ec5975c4c6edcee02c20e8aa963429ac56e36a
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:43:06 2019 +0800

    update `cosmiconfig` to v5.2.1 (#6530)

commit 496c5a208a9cfb8996250ddbc6df7877eb57fb24
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:42:43 2019 +0800

    update `camelcase` to v5.3.1 (#6528)

    * update `camelcase` to v5.3.1

    * update yarn.lock

commit 7ec1af1cbd7c900d833b2da1bcf465734e1ec955
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:41:30 2019 +0800

    update `editorconfig` to v0.15.3 (#6533)

commit 27bef857df07832a4712e9b37ec74a998581ebf3
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:40:47 2019 +0800

    Update `rimraf` to v3 (#6551)

commit f86a5bfae39dd32571599b1c3d17fa6c5daaf318
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:40:28 2019 +0800

    Update `webpack` to v4.41.0 (#6560)

    * Update `webpack` to v4.41.0

    * update cache version

commit eeb4734b23ca7fa1619c0a8f4d135d631baf1d1b
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:40:05 2019 +0800

    Update `resolve` to v1.12.0 (#6542)

commit 112593606301e2896d760fc3b15cda6397e70192
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:39:32 2019 +0800

    Update `html-tag-names` to v1.1.4 (#6553)

commit 28b06e940078a0b39ea24f8664560e1b87f4baaa
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 28 21:39:11 2019 +0800

    Update `eslint-plugin-prettier` to v3.1.1 (#6558)

commit 84e7866896ea5e12a0b916b4a7cf51123aea323e
Author: Andrew Powell <shellscape@users.noreply.github.com>
Date:   Sat Sep 28 09:22:18 2019 -0400

    docs: add prettier-plugin-package to community plugins (#6463)

commit 8125667bbf35b40fc78f3e18577a332629f034ba
Author: Matthew Leffler <mattleff@gmail.com>
Date:   Fri Sep 27 07:20:31 2019 -0400

    Add R&D to users (#6523)

commit c0059b06c0d392f1f871460d15de0ca17d4e5b0c
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Fri Sep 27 20:09:43 2019 +0900

    Fix lint (#6526)

commit bb037eb218cbcf914575fe95d9f43e87ffab69a9
Author: Matthew Leffler <mattleff@gmail.com>
Date:   Wed Sep 25 08:51:50 2019 -0400

    TypeScript: Improve argument expansion with `as` type expressions (#6471)

commit 90bb52439b2dbe36dfa7aace9d1f336b2cd72587
Author: Albert Nigmatzianov <albertnigma@gmail.com>
Date:   Tue Sep 24 20:28:26 2019 +0200

    Add Campusjäger to users (#6509)

commit 3fb6d0b88a4abc54a49b99b5fc86d53a959ef2f6
Author: fisker Cheung <lionkay@gmail.com>
Date:   Wed Sep 25 00:53:31 2019 +0800

    Update `linguist-languages` to v7.6.0 (#6489)

commit 27e777e476ea09025187e1d179d87ed90a948931
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Wed Sep 25 00:59:54 2019 +0900

    TypeScript: Keep type parameters inline for a variable declaration (#6467)

    * Modify to keep inline type parameter with variable declaration

    * Update CHENGELOG.unreleased.md

    * Add tests

    * Add tests

    * Add pr number and link

commit 24ffeba8f6324ee74c5439c649b03fa2b0aec441
Author: fisker Cheung <lionkay@gmail.com>
Date:   Tue Sep 24 00:36:31 2019 +0800

    Update `@angular/compiler` to v8 (#6498)

commit 2e2368f5d7db2d74c4c4b0242055a8dbb2a55398
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Tue Sep 24 01:35:06 2019 +0900

    JavaScript: Fix inconsistent indentation in switch statement (#6514)

    * Add "SwitchStatement" to isInsideParenthesis

    * Change tests

    * Add tests

    * Update CHANGELOG.unreleased.md

    * Add pr number and link

commit c5c8862333135e4abc2d03b5b0e76faf9d9014f7
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Mon Sep 23 21:00:34 2019 +0900

    JavaScript: Fix Bad format for multi-line optional chaining with comment (#6506)

commit 942dc04c5189d609cf3fbf94521560c8b5f5e152
Author: Markus <9371658+beardcoder@users.noreply.github.com>
Date:   Mon Sep 23 13:58:23 2019 +0200

    TASK: Correct version number (#6493)

commit 70d6352d32cfc7276e3594c1a5d98e5defb3c1bb
Author: Lucas Duailibe <lucasds@gmail.com>
Date:   Mon Sep 16 12:21:09 2019 -0300

    Remove empty blog post

commit f000fb1e881ea67036f942469078d61288e69847
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 16 19:33:59 2019 +0800

    Update babel related deps (#6485)

commit a0eddb1c8c1012126758fbec4e45a3530b618e6e
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 16 19:33:40 2019 +0800

    Update rollup related deps (#6484)

commit 35b6cdcef31724ac31a3e0497be4c8feb7adf7f4
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 16 19:33:11 2019 +0800

    Update eslint related deps (#6483)

commit 71d9a08488a3e0939eb874cacd0acbb1e6409a3a
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Sep 16 17:13:32 2019 +0800

    Minify postcss parser (#6395)

    * Update webpack to v4

    * add todo

    * add link

    * Minify postcss parser

    * update yarn.lock

    * chore: update yarn.lock

commit 8d0ac8bb58ccc0d30a47a000ca3adba7343cec90
Author: Simon Lydell <simon.lydell@gmail.com>
Date:   Sat Sep 14 13:11:52 2019 +0200

    Update website/versioned_docs/version-stable/

commit 5ce16eaa023d0926cf508e900ca191bd08c731ec
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 14 05:57:16 2019 +0800

    Update linguist-languages to v7 (#6367)

    * Update linguist-languages to v7

    * Trigger build

    * Update

    * replace `includes` with `indexOf`

    * fix `exclude`

    * add `nodejs` back

commit 370e827217574e6f34c9c66fe2253b4ee6955561
Author: fisker Cheung <lionkay@gmail.com>
Date:   Sat Sep 14 05:55:30 2019 +0800

    Update webpack to v4 (#6366)

    * Update webpack to v4

    * add todo

    * add link

commit e83b4537feaa6c063a1598b8d3972b6ad600f2a7
Author: Ramy Majouji <majouji@users.noreply.github.com>
Date:   Thu Sep 12 15:31:18 2019 -0400

    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

commit af3084a63fad78eb617798044f9566eb30555e22
Author: Jack Bates <jack@nottheoilrig.com>
Date:   Thu Sep 12 08:52:48 2019 -0700

    Plugins can have falsy default options (#6348)

commit ee43140f2c6b62bbba3767a3e46882a7586040a7
Author: Matthew Leffler <mattleff@gmail.com>
Date:   Thu Sep 12 08:21:07 2019 -0600

    Fix docs lint error (#6474)

commit 2e8690a2a9cce872a714913323e1fb8f3f92f43b
Author: Lipis <lipiridis@gmail.com>
Date:   Thu Sep 12 01:37:25 2019 +0300

    Rename 2019-09-16-1.19.md to 2019-09-16-1.19.0.md

commit 80df0fe793d7b5a144a3f0e632449bbe0b102d83
Author: Lipis <lipiridis@gmail.com>
Date:   Thu Sep 12 01:36:53 2019 +0300

    Create 2019-09-16-1.19.md

commit 8e8411b7c7bbadbec92669c9bcf5ed771c0bcc91
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Wed Sep 11 19:10:44 2019 +0900

    Fix lint error (#6465)

commit 3f89bba2314d0b69eae6e290f243e3e2a848d9fa
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Wed Sep 11 18:10:34 2019 +0900

    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

commit 9f5bd298db26f76e95ad17f8406edd7ebefacc5a
Author: Lipis <lipiridis@gmail.com>
Date:   Sat Sep 7 19:38:14 2019 +0300

    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>

commit 8f0fdba4ba34fd77976be8bdc505cb99ed0299dd
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Sat Sep 7 21:46:00 2019 +0900

    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

commit fd6ad2a623be5aed12b4718a6d08afbbdd4d84f6
Author: Kevin Gibbons <kevin@shapesecurity.com>
Date:   Thu Sep 5 12:56:30 2019 -0700

    handle empty object param patterns with type annotations (#6438)

    * handle object patterns in function parameters with type annotations

    * fix lint

    * update changelog

commit ff9b2b6cb5cdcfc0db62d4f7fcee74a1e3dd24ad
Author: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Date:   Thu Sep 5 21:24:20 2019 +0300

    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

commit 223443c057e64ca04cda5c0f37f5d15daaf69337
Author: Ivan Pazhitnykh <ivan.pazhitnykh@gmail.com>
Date:   Fri Aug 30 23:30:36 2019 +0300

    Playground: Fix "Report issue" 414 bug (#6409)

commit 2523a017aad479b006593e9b380e4e27a7caea3d
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Fri Aug 30 14:07:00 2019 +0900

    JavaScript: object destructuring with parameter decorators (#6411)

commit 7c47135f6162583a86990b2edc817dfe7247bc70
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Aug 29 20:15:35 2019 +0200

    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>

commit 77e79bbfa5fdd7c8968561ecdfa1b04adbc4596c
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Fri Aug 30 03:14:45 2019 +0900

    TypeScript: Fixed to break line and add a semi in one execution on one line long mapped types (#6420)

commit a8d75a1464414fc0e7e8c761cdcdde76d096281d
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Aug 29 07:02:13 2019 +0200

    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>

commit 8a4b34d2a48e2684f2ce8e079f595bde4fa47734
Author: Brian Ng <bng412@gmail.com>
Date:   Wed Aug 28 15:03:41 2019 -0500

    Add changelog entry for ?? precedence update (#6430)

commit 01dc7aec658ec5041a5d1f0318b82a42614abeb8
Author: Kevin Gibbons <bakkot@gmail.com>
Date:   Wed Aug 28 03:50:24 2019 -0700

    fix: more readable parentheses for new-call (#6412)

commit 2827543154ba3c39f317b4f47e40d5528d892383
Author: Simon Lydell <simon.lydell@gmail.com>
Date:   Tue Aug 27 07:09:12 2019 +0200

    Improve overrides documentation (#6416)

    Refs. #6415.

commit 5c976c4636657fd7344227b23de34841498f5811
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Tue Aug 27 07:08:46 2019 +0200

    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>

commit 2f40dba3177c6edd3ceb88b26cdf4718e892a3e5
Author: Shinigami <chrissi92@hotmail.de>
Date:   Wed Aug 21 19:18:04 2019 +0200

    Remove alpha from plugin pug (#6408)

commit 43d03209d211758ae645d35335351b04a672bf38
Author: Christopher Chedeau <vjeux@fb.com>
Date:   Tue Aug 20 14:26:21 2019 -0700

    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.

commit 23146404850011972f695fb6bc2b8113c3cffbfc
Author: Beau Fabry <bfabry@zendesk.com>
Date:   Thu Aug 15 02:34:19 2019 -0700

    include renames in git pre-commit hook (#6371)

commit 68d3e74afeccb5525d3dd9a2bc7e8b4137745245
Author: JounQin <admin@1stg.me>
Date:   Wed Aug 14 18:45:59 2019 +0800

    fix(mdx): text with whitespace after JSX trim incorrectly (#6340)

commit b9cbca9eceea28968096b5a80a41be0f1089a62c
Author: Simon Lydell <simon.lydell@gmail.com>
Date:   Mon Aug 12 19:17:55 2019 +0200

    Update website/versioned_docs/version-stable/

commit 26c835c60ca9abd78c4df55da1bdffbce4202cf2
Author: Simon Lydell <simon.lydell@gmail.com>
Date:   Mon Aug 12 17:25:45 2019 +0200

    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.

commit 7829caa8189217321fb55d20a517ca33b7331451
Author: fisker Cheung <lionkay@gmail.com>
Date:   Mon Aug 12 23:23:13 2019 +0800

    Fix `.eslintrc.yml` code style (#6388)

commit e773cfbf1270e10bf6037a092aee465a17166559
Author: Kepler Sticka-Jones <kepler+github@stickajones.org>
Date:   Mon Aug 12 07:39:08 2019 -0600

    docs: add jest-runner-prettier to related projects (#6383)

commit 6d6d57f2a46e38bf4b80325aaf3602e831963ada
Author: Dirk Schürjohann <ds@decaf.de>
Date:   Mon Aug 12 15:38:42 2019 +0200

    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.

commit dd648423750552cd6dad8653b7df81e1cfbc4286
Author: Cyrille David <dcyriller@users.noreply.github.com>
Date:   Mon Aug 12 15:35:13 2019 +0200

    chore(Handlebars): Refactor test suite (#6378)

commit 4b96097a8db7436236585eef93da4a3e8d2a53fc
Author: Chris Brody <chris@brody.consulting>
Date:   Fri Aug 9 09:42:02 2019 -0400

    get-stream@4.1.0 update in package dependencies (#6372)

commit 9e5a5435a107fb894b20c24a97a8c5a63ee54ad9
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Thu Aug 8 22:48:37 2019 +0900

    fix(TypeScript): specific union type breaks after opening parenthesis, but not before closing (#6307)

commit ce366f08348fd3a68f93b2d714fb734a08b8a1e2
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Thu Aug 8 22:06:28 2019 +0900

    fix(JavaScript): bug when arrow fn as function parameter with newline (#6301)

commit d66c5f82daf9d395b89956d5e762a4dc2a054c42
Author: Sosuke Suzuki <aosukeke@gmail.com>
Date:   Thu Aug 8 21:18:37 2019 +0900

    fix(HTML, Vue): don't break the template element included in a line shorter than print-width (#6284)

commit 38450587fef735b5cd722e68a25a91a9bc30bf1f
Author: Jack Bates <jack@nottheoilrig.com>
Date:   Thu Aug 8 05:02:47 2019 -0700

    Delete .config.json.swp (#6363)

commit 494e3b74289afbfa1da4cddf8f66fa5f1b1e3689
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Aug 8 20:00:42 2019 +0800

    Update babel (#6368)

    * Update `@babel/core` & `@babel/preset-env` to latest

    * Update `@babel/code-frame`

commit c5cf747b267bd1d84f70a574f0fb27373c44242b
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Aug 8 18:23:04 2019 +0800

    Update rollup to v1.19.4 (#6365)

commit 0e77cd3d33d7d78ef4e6f649d83a62aa82dc5125
Author: fisker Cheung <lionkay@gmail.com>
Date:   Thu Aug 8 18:21:32 2019 +0800

    Update ESLint to v6 (#6364)

commit 7d0175ca90a79051e5713758e6c5295635b634d0
Author: kamilic <jeflic10@gmail.com>
Date:   Thu Aug 1 17:06:12 2019 +0800

    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

commit e5fbef238d3c298d02a0eb5f4534b24f95eb8862
Author: JounQin <admin@1stg.me>
Date:   Tue Jul 30 17:48:14 2019 +0800

    docs: fix possible typo AFAIK (#6341)

commit 998f98aaded4c3b2b627578098c7f0c92cda7385
Author: JounQin <admin@1stg.me>
Date:   Mon Jul 29 19:32:24 2019 +0800

    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...

commit 788bd7afcd61b77dc08cd496fa50e8e345a3bf1a
Author: Niklas Higi <niklas@shroudedcode.com>
Date:   Sun Jul 28 08:43:06 2019 +0200

    Link to `fast-glob` instead of `glob` in docs (#6333)

commit 48697e923711cf2bd9cf9de2dae8e3445dc5344b
Author: Gabriel Harel <gabrielj.harel@gmail.com>
Date:   Fri Jul 26 09:03:26 2019 -0700

    Handle missing cache directory for changedCache (#6327)

    * handle missing cache directory for changedCache

    * fallback to temp dir when cache dir not found

commit 6fae09b67ec6f7b27259a5c133a6961d05a4161b
Author: Gabriel Harel <gabrielj.harel@gmail.com>
Date:   Mon Jul 22 10:17:24 2019 -0400

    Add --only-changed flag to CLI (#5910)

commit 7286413ee5246d43f7900997226096989c26fdf0
Author: Matt Kane <m@mk.gg>
Date:   Mon Jul 22 14:48:03 2019 +0100

    Add JSON script types (#6293)

    * Add JSON mimetypes

    * Use endsWith

    Co-Authored-By: Simon Lydell <simon.lydell@gmail.com>

commit b557dc3603008143b8af55252f12361b05630de1
Author: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Date:   Mon Jul 22 15:39:18 2019 +0200

    [Glimmer/Handlebars] Forces multilines print when almost at max length (#6249)

commit 0c72b24a0e584d6f1a8bb0e8ba3a090e268721fb
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Jul 22 14:04:10 2019 +0300

    Bump lodash from 4.17.5 to 4.17.15 in /website (#6320)

    Bumps [lodash](https://github.com/lodash/lodash) from 4.17.5 to 4.17.15.
    - [Release notes](https://github.com/lodash/lodash/releases)
    - [Commits](https://github.com/lodash/lodash/compare/4.17.5...4.17.15)

    Signed-off-by: dependabot[bot] <support@github.com>

commit 26b55a7e339d6e5021e19991ee1d14f3394f385d
Author: Alexander Kachkaev <alexander@kachkaev.ru>
Date:   Sat Jul 20 19:43:11 2019 +0100

    Add prettier-plugin-packagejson to docs (#6314)

commit 9c8d920c173534e7c65111f9310f763f80de55a3
Author: Liam Stupid Name Humphreys <liam.humphreys1989@gmail.com>
Date:   Thu Jul 18 15:54:39 2019 +0100

    add Kotlin plugin to plugins doc (#6309)

    * add kotlin-plugin to plugins doc

    * maintain alphabetic order in plugins list

    * maintain alphabetic order in plugins list
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Dec 14, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

union type array breaks after opening parenthesis, but not before closing
4 participants