Commit Graph
100 Commits
Author SHA1 Message Date
Sosuke Suzuki 0cdc62e405 Improve formatting for do expression (#10693) 2021-04-12 04:22:44 +03:00
Sosuke Suzuki 34cff1095a Fix changelog for support TypeScript 4.2 (#10595) 2021-03-25 15:36:21 +09:00
Sosuke SuzukiandGeorgii Dolzhykov a49942c1ba Support module blocks proposal (#10417)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-03-24 18:19:11 +02:00
Sosuke Suzuki f0a612a302 Update @typescript-eslint/typescript-estree (#10589) 2021-03-24 19:39:00 +09:00
046ffb11f9 Support better formatting for curried arrow functions (#9992)
* Support formatting for curried arrow functions

* Fix test file name

* Fix threshold

* Add changelog

* Fix operator for comparing

* Fix return pos

* Fix eslint

* level 2

* Refactor for level2

* Update tests

* Remove concat

* If it fits on one line, print on one line

* Indent second level arg

* Break before last return value

* Use isCallLikeExpression

* Improve printing

* Add tests

* Remove unnecesary condition

* Fix lint problems

* Update src/language-js/utils.js

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update changelog

* Add ImportExpression

* Add ImportExpression to isCallLikeExpression

* Resolve conflicts

* Address reviews

* Fix ESLint problem

* Fix changelog

* Add tests

* More tests

* Print simple arrow chains on one line

* Don't forcibly break chain when a segment has a return type but no params

* Prevent excessive wrapping in assignments

* Simplify

* Format object bodies like blocks

* Update changelog

* Fix last arg expansion

* Simplify

* Fix arrow chains in assignment chains

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-03-08 23:18:53 +02:00
Sosuke Suzuki c9144daf47 Support TS 4.2 abstract construct types via ts-estree (#10466) 2021-03-06 19:16:51 +02:00
Sosuke Suzukiandfisker Cheung f1b5720fc7 Remove unstable AST testing (#10462)
* Add unstable AST testing for json-stringify parser

* Deduplicate yarn.lock

* Ignore `tokens`

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-03-05 12:17:42 +02:00
Sosuke Suzuki eb5139b7a9 Remove unnecessary condition (#10032) 2021-03-05 09:24:46 +02:00
Sosuke Suzuki fc396277fc Support TS 4.2 abstract constructor signature (#10418) 2021-02-28 22:00:17 +02:00
Sosuke Suzuki feacf82892 Update babel/parser to v7.12.17 (#10345) 2021-02-25 18:28:06 +08:00
Sosuke Suzuki b0d66bb3c6 Support TS 4.1 intrinsic keyword (#10390) 2021-02-22 13:49:49 +02:00
Sosuke Suzuki f858f5519f Add prettier-ignore comment for cpied markdown (#10343) 2021-02-18 23:24:10 +09:00
Sosuke Suzuki 2598803a2a Improve formatting for React Hooks call (#10238)
* Add isReactHookCallWithDepsArray

* Improve formatting for React hooks call

* Refactor

* Add changelog

* Use isReactHookCallWithDepsArray in shouldGroupLastArg

* Support general pattern
2021-02-14 23:57:26 +02:00
Sosuke Suzukiandfisker Cheung 7d84c0a5a4 Fix inconsistent indentation for ternary in call expressions (#10266)
* Refactor with do while

* return false when ternary in CallExpression is not callee

* Update changelog

* For computed member property

* Fix

* Simplify

* Minor tweak

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-02-12 08:11:24 +09:00
Sosuke Suzuki 2d97df8ec7 Fix unnecessary line breaks in method type declaration parameters (#10024) 2021-02-11 09:49:38 +02:00
Sosuke Suzuki cc1f0543e6 Consistent indentations for conditional operators (#10187) 2021-02-07 16:53:05 +02:00
Sosuke Suzukiandfisker Cheung 07b30645ec style: Add new ESLint rule no-empty-string-for-ifbreak (#10172)
* Add new ESLint rule for ifBreak

* Fix for third argument

* Run fix with new rule

* Address review

* Fix

* Update no-empty-flat-contents-for-if-break.js

* Fix CI config

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-29 20:03:11 +09:00
Sosuke Suzukiandfisker Cheung c881350e8c Break assignment whose rhs is wrapped by an unary expression (#10158)
* Break assignment whose rhs is wrapped unary expression

* Add changelog

* Recursive

* Refactor

* With loop

* Use if

* Update assignment.js

* Update assignment.js

This rewrite not totally equal, but should safe.

* Revert "Update assignment.js"

This reverts commit 14549442b7726461b0e39d0b1077cdbb00195e73.

* Try move parser check upper

* Simplify `switch`

* Simplify

* Move parser check to top

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-28 23:06:16 +09:00
Sosuke SuzukiandGeorgii Dolzhykov 53a7e9782b Print trailing comma for type parameters (#10109)
* Print type parameters for TypeScript

* Add more tests

* Add changelog

* Avoid duplicates printing trailing-commas

* Fix changelog

* Address review

* Update src/language-js/print/type-parameters.js

* Update 10109.md

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-28 23:03:16 +09:00
Sosuke Suzuki c7a3c16f7d Improve visual separation between header and body in classes with multiline headers (#10085)
* Add hardline for a class whose extends part is broken

refactor

Use groupId

Remove isPreviousLineEmpty

* Avoid leading comments

* Rename to heritage

* Add heuristic for implements

* Fix lint problems

* Fix

Fix

Fix

* Extract getGroupId patterns

* Adopots solution 2

* Fix

* Fix lint problem

* Add changelog

* Address reviews

* Update tests

* Rename to createGroupIdMapper

* Split files

* Add tests for complex extends

* Fix changelog
2021-01-20 15:01:16 +09:00
Sosuke Suzuki fbb3c421e5 Remove workaround for rollup/plugin-node-resolve 11 (#10075) 2021-01-18 16:51:00 +09:00
Sosuke Suzuki 0144c7aa2f Rename shouldNotPrePrintHardline to shouldPrePrintHardline (#10067) 2021-01-18 10:50:02 +09:00
Sosuke Suzuki 87b5cfc8ab Refactor: Use getLastStatement function in printStatementSequence (#10066)
* Add getLastStatement function

* Use loop

* Fix lint problem
2021-01-17 10:54:38 +09:00
Sosuke Suzuki 2f3fc241f8 Add meriyah to getMarkdownSyntax (#10061) 2021-01-15 23:05:31 +09:00
Sosuke Suzuki 671fa5ddaf Move checkCache to Cache class (#10029)
* Move checkCache to Cache class

* Address reviews
2021-01-11 13:25:34 +09:00
Sosuke Suzukiandfisker Cheung e70ad5b7fb Check cache only when purge-cache is off (#10031)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-11 10:24:24 +08:00
Sosuke Suzuki e2c84527e7 Use fs.promises in build script (#10025) 2021-01-09 02:09:40 +09:00
Sosuke Suzuki 23521ded6c Refactor CLI context with ES2015 class (#9964)
* Remove createContext

* Remove initContext

* Remove pushContextPlugins

* Remove popContextPlugins

* Move JSDoc comments

* Remove updateContextArgv

* Remove normalizeContextArgv

* Remove updateContextOptions

* Fix typedef

* Change exports format

* Add comment for initContext
2021-01-01 01:56:32 +09:00
Sosuke Suzuki de882505f0 Fix params mistaking at #9900 (#9912) 2020-12-16 18:46:56 +09:00
Sosuke Suzuki cb6a977733 Prints bundle sizes in build script log (#9900)
* Prints bundle size with flags

* Add "gzipped" to cspell.json

* Print esm bundle size

* Remove gzipped size from log
2020-12-16 08:45:29 +09:00
Sosuke Suzuki 8d0c8b2bf4 Extract files and rename util -> core (#9826)
WIP

Extract create-minimist-options

Remove warning

Fix

Extract format.js

Fix

Remove

fix

Fix

Extract files for cli and rename util -> core

Update tsconfig
2020-12-08 14:36:46 +09:00
Sosuke Suzuki aaa9363e6f Print null argument list item (#9787)
* Print null argument list item

* Add changelog

* Add tests for comments
2020-12-08 13:52:30 +09:00
Sosuke Suzuki 083b501663 Refactor: Make Cache modern in build scripts (#9809)
* Make cache class

* equal -> strictEqual

* Use strict mode assert module
2020-12-02 15:03:32 +09:00
sosukesuzuki 9ee97183a0 Clean changelog_unreleased for patch-release 2020-11-28 09:46:33 +09:00
sosukesuzuki eb7972a86d Clean changelog_unreleased for patch-release 2020-11-28 09:39:51 +09:00
sosukesuzuki 81cf06129b Merge branch 'patch-release' 2020-11-28 09:28:07 +09:00
sosukesuzuki de00bf1018 Update dependents count 2020-11-28 09:26:43 +09:00
sosukesuzuki 2df7277501 Git blame ignore 2.2.1 2020-11-28 09:26:36 +09:00
sosukesuzuki 80961835a6 Bump Prettier dependency to 2.2.1 2020-11-28 09:26:36 +09:00
sosukesuzuki 326543f908 Release 2.2.1 2020-11-28 09:21:04 +09:00
sosukesuzuki 81bfd3ffc7 Fix changelog to old format 2020-11-26 02:42:41 +09:00
Sosuke Suzuki b46710f2d9 Fix formatting for AssignmentExpression with ClassExpression (#9741)
* Fix formatting for asignment with superClass

* Add tests

* Changelog

* For only AssignmentExpression

* Remove unnecesary ifBreak
2020-11-26 02:35:14 +09:00
Sosuke Suzuki 3208b948fc Fix formatting for AssignmentExpression with ClassExpression (#9741)
* Fix formatting for asignment with superClass

* Add tests

* Changelog

* For only AssignmentExpression

* Remove unnecesary ifBreak
2020-11-22 09:24:22 +09:00
sosukesuzuki 28cc1908fd Clean changelog_unreleased 2020-11-20 14:01:22 +09:00
Sosuke Suzukiandfisker Cheung d2b9b083ca Add 2.2 blog post (#9589)
* Generate draft via script

* Add description

* Mention about pre-commit

* Remove pr-9209.md

* Mention about pre-commit

* Add pr-8937.md

* Update pr-9473

* Update pr-9473

* Update intro file

* Add links to TS 4.1

* Update blog-post

* Move pre-commit support to pre-commit repo

* Fix BLOG_POST_INTRO_TEMPLATE.md

* re-generate draft

* Fix switching versions and re-generate draft

* Update links for TS 4.1

* Update draft

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-11-20 13:54:09 +09:00
sosukesuzuki 2d9897a6b8 Update dependents count 2020-11-20 13:51:58 +09:00
sosukesuzuki 117583991c Git blame ignore 2.2.0 2020-11-20 13:51:46 +09:00
sosukesuzuki cf354c205d Bump Prettier dependency to 2.2.0 2020-11-20 13:51:46 +09:00
sosukesuzuki 42b2195e71 Release 2.2.0 2020-11-20 13:44:18 +09:00
Sosuke Suzuki 9bc90cfe7d Update to typescript 4.1.2 (#9725) 2020-11-20 11:35:29 +09:00
Sosuke Suzuki f2b4965a6a Add clean-changelog-unreleased step to release script (#9682) 2020-11-18 12:45:44 +08:00
Sosuke Suzukiandfisker Cheung 4cc149248a Support TypeScript 4.1 via typescript-estree (#9636)
* Update typescript and typescript-estree

* Add AST transformation for TSTemplateLiteralType

* Update tests for template-literal-types

* Fix transformChainExpression

* Update tests for key-remapping-in-mapped-types

* Implement recoverInvalidDecorators

* Update changelog

* Avoid typecheck error

* Add os.platform() shim

* Update config.js

* Update config.js

* Shim os.cpus

* Update `process.versions.node`

* Attempt to fix build

* Update ts parserOptions

* Fix code style

* Remove `errorOnUnknownASTType`, fix code style

* Use `[] ||` instead of `[] //`

* Fix hack

* Add invalid tests

* checkMissingDecorators

* Update tests

* Fix tests

* Add comment

* Revert "Implement recoverInvalidDecorators"

This reverts commit 27e7b46ed41df36fb585791117c85e1b2dab932c.

* Add ref pr link

* Simplify logic

* Don't transform `TSTemplateLiteralType`

* Add `TSTemplateLiteralType` as simple type

* Fix tests

* Update comments

* Add comment

* Fix logic

* Minor tweak

* use multiple parsers

* Update @typescript-eslint/typescript-estree to v4.8.0

* Switch to `parseWithNodeMaps`

* Rename `esNode` -> `esTreeNode`

* Update @typescript-eslint/typescript-estree to 4.8.1-alpha.1

* Use @typescript-eslint/typescript-estree 4.8.1

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-11-18 10:59:58 +09:00
Sosuke Suzuki fe789dc1d1 Reuse dirPath variable (#9683) 2020-11-16 14:17:36 +09:00
Sosuke Suzuki d5cfb5b856 Add HIGHTLIGHT mark to CHANGELOG (#9562) 2020-11-03 02:55:07 +09:00
Sosuke Suzukiandfisker f7554c62a2 Revert breaking changes related to adding pure css parser for minor releasing (#9500)
* revert without tests

* Downgrade postcss-scss and postcss-less

* Fix tests

* Revert "Make `isSCSS*` function stricter (#9093)"

This reverts commit 01f986bea9.

* Revert "Remove `css` parser from `isLessParser` check (#9092)"

This reverts commit c0bca1805d.

* Revert "Add pure css parser (#7933)"

This reverts commit 589ebf670b.

* Disable `parser-postcss.js` minify

* Try to fix build script

* Update fs.mjs

* Update fs.mjs

* Style

Co-authored-by: fisker <lionkay@gmail.com>
2020-10-31 22:22:35 +09:00
Sosuke Suzuki 13f3336bba Support class-static-block proposal (#9476)
* Support class-static-block proposal

* Update changelog
2020-10-23 20:09:07 +09:00
Sosuke Suzuki 56e9602a28 Support TypeScript 4.1 via Babel (#9473)
* Support Key Remapping In Mapped Types

* Fix by Prettier

* Add changelog

* Fix jsfmt.spec.js

* Update cspell.json
2020-10-22 21:12:24 +09:00
Sosuke Suzuki 3b7a7ba3c9 Update @babel/parser to 7.12 (#9408)
* Install babel/parser 7.12

* Add tests for babel/babel#12161

* Add test for babel/babel#12076

* Add test for babel/babel#12085

* Add test for babel/babel#12108

* Add test for babel/babel#12120

* Add test for babel/babel#12054

* Add test for babel/babel#12061

* Add test babel/babel#12093

* Add test for babel/babel#12065

* Add test for babel/babel#12111

* Add test for babel/babel#12072

* Switch syntax-module-attributes to syntax-import-assertion

* Support "String import/export specifier"

* Remove tests for module-attributes

* Add changelog

* Update to 7.12.3

* Fix by linter

* Fix by spellchecker

* Add tests for module attributes to errors

* Add error test for module string name with import

* Remove TSTypeCastExpression

* Add tests for funny import-assertions

* Update snapshots|

* Add more tests
2020-10-20 19:01:30 +09:00
Sosuke Suzuki bba196abc8 Improve formatting for AssignmentExpression with ClassExpression that has long superClass (#9341)
* Improve formatting for AssignmentExpression with ClassExpression that has long superClass

Fix by prettier

* Add changelog

* Remove unnecesary concat call

* Mention abount Google Closure Library in changelog
2020-10-08 20:11:15 +09:00
Sosuke Suzuki bb238f5765 Fix placing leading comments for a body of while statement (#9345)
* Add leading comments for while

* Add tests

* Add changelog
2020-10-08 17:08:40 +09:00
Sosuke Suzuki b886d9847d Add missing prettier-ignore comment in changelog (#9346) 2020-10-08 02:14:46 +09:00
Sosuke Suzuki e1eecfd7eb TypeScript: Preserve a last separator for ignored object and interface types (#9318)
* Preserve ignored TypeScript signature

* Add Changelog
2020-10-06 15:09:22 +09:00
Sosuke Suzuki 16dc1a85f6 Remvoe duplicated condition (#9319) 2020-10-06 10:13:16 +09:00
Sosuke Suzuki 3e6dd0d5e8 Use better fonts in Playground (#9193) 2020-09-17 21:09:58 +03:00
sosukesuzuki dbc856f9bc Merge branch 'patch-release' 2020-09-16 09:54:44 +09:00
sosukesuzuki 0cdc37410d Update dependents count 2020-09-16 09:53:02 +09:00
sosukesuzuki c4d3014b95 Bump Prettier dependency to 2.1.2 2020-09-16 09:51:49 +09:00
sosukesuzuki 8eb8f9ed2d Release 2.1.2 2020-09-16 09:46:05 +09:00
sosukesuzuki f75844a453 Fix changelog 2020-09-16 08:35:59 +09:00
Sosuke Suzukiandfisker ec1b419307 YAML: Fix printing doubles a blank line before a comment (#9143)
* Print hardline for endComments only when under mappingValue

* Add changelog

* Fix from linter

* Update tests

* Use shouldPrintEndCommentsWithAlign

* Add tests

* Add test

* Fix format

* Update test

* Test map too

* Update tests

* `shouldPrintEndCommentsWithAlign` -> `shouldPrintEndComments`

Co-authored-by: fisker <lionkay@gmail.com>
2020-09-16 08:03:48 +09:00
Sosuke Suzuki ab9474eacc Fix line breaks for CSS in JS (#9136)
* Fix 2.1 regression for css-in-js

* Add changelog
2020-09-16 08:03:34 +09:00
Sosuke SuzukiandGeorgii Dolzhykov d5da779cb1 GraphQL: Fix formatting for directives in fields (#9116)
* Fix formatting for directives in FragmentDefinition

* Add changelog

* Update src/language-graphql/printer-graphql.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

* Fix by Prettier

* Refactor

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-09-16 08:03:19 +09:00
Sosuke Suzuki 10a8eff02b Release script: Commit and push after updating dependents count (#9183)
* Modify to commit and push to remote after updating dependendts count

* Fix typo
2020-09-12 03:49:44 +09:00
Sosuke Suzuki 7174924742 Refactor: Use set instead of array (#9164)
* Use set instead of array

* With WeakMap cache

* Refactor

* Fix typo
2020-09-11 13:16:40 +03:00
Sosuke Suzukiandfisker 5f9bb2590b YAML: Fix printing doubles a blank line before a comment (#9143)
* Print hardline for endComments only when under mappingValue

* Add changelog

* Fix from linter

* Update tests

* Use shouldPrintEndCommentsWithAlign

* Add tests

* Add test

* Fix format

* Update test

* Test map too

* Update tests

* `shouldPrintEndCommentsWithAlign` -> `shouldPrintEndComments`

Co-authored-by: fisker <lionkay@gmail.com>
2020-09-07 14:10:05 +03:00
Sosuke Suzuki 2c0e9838f2 Fix line breaks for CSS in JS (#9136)
* Fix 2.1 regression for css-in-js

* Add changelog
2020-09-04 13:12:58 +09:00
Sosuke SuzukiandGeorgii Dolzhykov 7463b9dd15 GraphQL: Fix formatting for directives in fields (#9116)
* Fix formatting for directives in FragmentDefinition

* Add changelog

* Update src/language-graphql/printer-graphql.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

* Fix by Prettier

* Refactor

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-09-03 02:57:17 +09:00
Sosuke Suzuki cc63358c90 Respect spacing between template values in embedded css (#9078)
* Respect no space for embedded css

* Fix by lint

* Add changelog
2020-08-28 11:08:29 +09:00
sosukesuzuki 3ed80834e6 Update dependents count 2020-08-26 13:31:31 +09:00
sosukesuzuki a836319711 Bump Prettier dependency to 2.1.1 2020-08-26 13:28:35 +09:00
sosukesuzuki 18bcaefc77 Release 2.1.1 2020-08-26 13:20:21 +09:00
Sosuke Suzuki 5a12f52bbe Replace changelog versions in ./scripts/draft-blog-post.js (#9058) 2020-08-26 11:19:10 +08:00
18b4cabc0c Add 2.1 blog post (#8932)
* Add draft for 2.1 blog post

* Update cspell.json

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update changelogs

* Add author to cspell ignore patterns

* Update cspell.json

* Fix original changelog

* Run draft script

* Update

* Fix TypeScript on Highlights

* Fix heading

* Fix author

* Fix changelog for 8410

* Fix syntax highlight

* Move changelog for 7844 to /scss

* Update website/blog/2020-08-21-2.1.0.md

Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Remove changelog_unreleased

* Update filename

* Replace to actual version manually

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-08-24 20:36:52 +09:00
sosukesuzuki cef4bcafc7 Bump Prettier dependency to 2.1.0 2020-08-24 20:33:20 +09:00
sosukesuzuki 6365138f40 Release 2.1.0 2020-08-24 20:24:48 +09:00
Sosuke Suzuki c4e9dd9c36 Continuation of revert 7889 (#9024)
* Continuation of revert 7889

* Remove isLiteralLikeValue

* Revert callHasComplexArguments

* Revert usage of shouldMerge
2020-08-23 01:23:41 +09:00
Sosuke SuzukiandChristopher J. Brody 751f67af1f Upgrade to TypeScript 4.0 (#8982)
* Upgrade to TypeScript 4.0

* Update tests

* Fix changelog

* Revert invalid label tests

* Set loggerFn to false

* Use TS 4.0

* Apply logical assginment test for TypeScript

* Remove hack for NamedTupleMember

* workaround for TypeScript 4.0 in src/language-js/utils.js

Co-authored-by: Christopher J. Brody <chris.brody+brodybits@gmail.com>
2020-08-21 16:09:28 +09:00
Sosuke Suzuki e3f075b3e7 Revert #7889 (#8861)
* Revert #7889

* Remove changelog

* Run prettier
2020-08-20 00:00:27 +09:00
Sosuke Suzukiandfisker Cheung 6dbef8681e Fix interface extends with long type parameters (#8981)
* Try the same way as #8967

* Update src/language-js/printer-estree.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-08-19 23:51:49 +09:00
Sosuke Suzuki 36c35be210 Fix class implements with long type parameters (#8967)
* Fix class implements

* Extract extendsParts and indent

* Refactor

* Refactor

* Fix by Prettier

* Refactor

* Refactor getTypeParametersGroupId with WeakMap
2020-08-19 20:21:52 +09:00
Sosuke Suzukiandfisker Cheung 29d6b22eae Add script to replace Prettier stable/Prettier master with the actual versions (#8984)
* Add a script replaces 'Prettier stable' => 'Prettier x.x'

* Fix by prettier

* Implement replaceVersionInBlogPost in release steps

* Update scripts/release/steps/update-changelog.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Fix from review

* Format version

* Update scripts/release/steps/update-changelog.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* `ver` -> `version`

* `Version` -> `Versions`

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-08-19 20:18:16 +09:00
Sosuke Suzuki 272bea50b6 Add tests for #3223 (#8849) 2020-07-29 00:30:42 +09:00
Sosuke Suzuki 744a4e8e0e Add tests after remark v8 (#8820)
* Add tests for #3753

* Add tests for #4306

* Add tests for #5921

* Add tests fro #6177

* Fix
2020-07-24 19:00:21 +03:00
Sosuke Suzuki 48157cc137 Use FastPath type def (#8740) 2020-07-13 21:05:46 +09:00
Sosuke Suzuki fe86dbbedb TSC ignore test*.* (#8710) 2020-07-06 10:57:26 +09:00
Sosuke Suzuki 85a81e47b7 Add more tests for logical assignment operator (#8692)
* Add more tests for logical assignment operator

* Make tests shorter
2020-07-03 01:24:24 +09:00
Sosuke Suzuki 359e5e3cc5 Fix jsdoc type comments for printTernaryOperator (#8689) 2020-07-01 13:34:15 +03:00
Sosuke Suzuki b7ba37dcc8 Refactor: Extract long function printTernaryOperator and related utils to the other file (#8664)
* Extract printTernaryOperator

* Move utils
2020-06-29 21:53:52 +09:00
Sosuke Suzuki 02137069a7 JavaScript: Break ternary expressions containing a multi-line block comment (#8592)
* Break ternary expression when there is multiline block comment

* Add changelog
2020-06-21 17:02:58 +09:00
Sosuke Suzuki 29959103a9 TypeScript: Prefer leading comment when there is a comment on after "?" in conditional types (#8557)
* Fix #8555

* Add changelog
2020-06-15 20:08:43 +09:00