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 Suzuki and fisker 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 Suzuki and fisker 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 Suzuki and fisker
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 Suzuki and fisker
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 Suzuki and Georgii 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 Suzuki and fisker
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 Suzuki and Georgii 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 Suzuki and Christopher 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 Suzuki and fisker 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 Suzuki and fisker 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
Sosuke Suzuki
b5aa575575
Fix h4 => h3 for dedentToRoot ( #8541 )
2020-06-10 14:37:56 +03:00
Sosuke Suzuki
b4d1053bb4
Refactor: Use normalizeParts from document/utils in printer-markdown ( #8496 )
...
* Use normalizeParts from utils in printer-markdown
* Remove flatting for concat from normalizeDoc
* Fix undef parts
* Move normalizeDoc to doc-utils
* Add test for normalizeDoc
* Modify tests to avoid specllcheck errors
2020-06-05 12:47:24 +03:00
Sosuke Suzuki and Georgii Dolzhykov
9c67e7b7f1
JavaScript: Fix indentation for binary expressions with trailing comments ( #8476 )
...
* Modify to align binaryish expression with trailing comment
* Add tests
* Add comment
* Add test
* Add changelog
* Fix by lint
* Modify to move transformation to printBinaryishExpressions
* Remove unnecessary new line
* Fix hasTrailingCommentInBinaryish
* Add shouldReturnParts option to printComments
* Add tests from review
* Fix by lint
* Extract and use normalizeParts
* Group CallExpression when parent node is binaryish
* Fix by lint
* Remove unnecessary change
* Wrap the doc of most left node with group
* Add tests
* Update pr-8476.md
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-06-04 08:59:05 +03:00
Sosuke Suzuki
85f0b0cc79
Fix Stage-1 => Stage-2 ( #8487 )
2020-06-03 19:22:11 +09:00
Sosuke Suzuki
6b4c4066aa
JSX: Wrap jsx element on the left of "<" with parentheses ( #8461 )
...
* Modify to wrap jsx on the left of "<"
* Only left
* Add changelog
2020-06-01 10:27:55 +09:00
Sosuke Suzuki
3fc75799ee
TypeScript: Support a TS 3.9 breaking change for Optional Chaining and Non-Null Assertions ( #8450 )
...
* Suuport improvement optional chaining ergonomics
* Add changelog
* Fix reviewed points
2020-05-31 09:17:39 +09:00
Sosuke Suzuki
f31430d7be
JavaScript: Support Babel 7.10 private field in in ( #8431 )
...
* Support Babel 7.10 private in
* Add changelog
* Fix changelog
2020-05-28 03:02:10 +09:00
Sosuke Suzuki
b44e702679
HTML: Support <script type="text/html"> ( #8371 )
...
* Support HTML Script
* Add changelog
* Remove lang support
2020-05-21 20:29:10 +09:00
Sosuke Suzuki
f3e59453cd
Vue: Improve upper case HTML tag formatting in DOM template ( #8337 )
...
* Treat upper case HTML same as lower case one
* Add changelog
* Support mixed case html tag
2020-05-19 10:30:03 +09:00
Sosuke Suzuki
b94e41aae4
Vue: Support Vue DOM template formatting ( #8326 )
2020-05-18 21:22:30 +08:00
Sosuke Suzuki
34bfaf87e6
Vue: Fix ugly formatting for one line template in SFC ( #8325 )
...
* Fix ugly formatting for one line template in Vue SFC
* Add changelog
* Modify to treat all root elements as block
2020-05-18 18:50:15 +09:00
Sosuke Suzuki
531b7ca139
Vue: improve parsing custom blocks with angular-html-parser@1.5.0 ( #8153 )
...
* Parse twice for vue
* Remove 'html' from vueRootElementsSet
* Add link for Vue SFC spec
* Modify to don't format pug code
* Add changelog
* Fix typo
* Change lang, pug => unknown in tests
* Support top-level html
* Refactor shouldParseAsHTML
* Fix multiple template formatting
* Tiny fix
* Fix by Lint
* Remove console.log
* Support nested template tag
* Meke expected syntax errors
* Update tests
* Support unclosed node
* Update to angular-html-parser@1.7.0
* Update
* Remove failed tests
* Modify to throw first parsing error
* Remove options for error tests
* Optimize parse
* Fix reviewed points
* Fix by lint
2020-05-14 22:08:40 +08:00
Sosuke Suzuki and fisker Cheung
915327d61d
Vue: Support custom blocks ( #8023 )
...
* Support Vue Custom Block
* Add changelog
* Udpate snapshots
* Support "type" for json
* Remove guessing languages
* Modify to reuse inferScriptParser logic
* Implement withInnerParts arg for stripTrailingHardline
* Rename isVueCustomBlock
* Set `verbose: true`
* Use getParserName
* Ignore vueIndentScriptAndStyle
* tmp
* Fix formatting
* Add tests
* Fix by lint
* Revert "Set `verbose: true`"
This reverts commit f65c7cd7d814d3149aadbeb3cfd00c5372887c33.
* loop with i--
* Modify to preserve unknown langauge
* Support embeddedLanguageFormatting
* Fix by lint
* Fix mistake
* Modify to preserve unknown lang
* Remove unnecesary condition
* Add error tests
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2020-04-17 07:54:24 +09:00
Sosuke Suzuki and Georgii Dolzhykov
17d6e38d34
JavaScript: Fix pipeline bugs ( #7979 )
...
* Fix arrow regression
* Fix resolvePluginConflict
* Update changelog
* Fix condition
* Edit changelog: add link to Babel blog, change order (to be as in the blog)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-04-08 23:49:46 +09:00
Sosuke Suzuki and Georgii Dolzhykov
ccaaad007d
JavaScript: Support Smart and F#-style Pipeline ( #6319 )
...
* Modify to support smart-pipeline in printer
* Add tests
* add a changelog entry
* change minimal to smart
* fix parens issues
* Support fsharp-pipeline
* Fix needs-parens
* Try to fix ci problem
* Update changelog
* Add more tests
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-04-07 19:42:45 +09:00
Sosuke Suzuki
0f56b4aa62
Flow: Print dangling comments for empty inexact object type ( #7892 )
...
* Remove unnecessary group
* Print dangling comment for inexact type
* Add changelog
* Fix changelog
2020-03-31 20:26:16 +09:00
Sosuke Suzuki and Georgii Dolzhykov
8a48ca2e3d
[TypeScript] format TSAsExpression with same logic as BinaryExpression ( #7869 )
...
* Treat TSAsExpression as like BinaryishNode
* Change test file extension, as.js => as.ts
* Add tests
* Remove old case for TSAsExpression
* Remove unnecesary condition
* Fix by lint
* Update snapshots
* Add changelog
* Remove convetToBinaryishNode
* Fix comment
* Use getBinaryishNodeNames
* Modify to wrap TSAsExpression with parens
* Fix by lint
* Do not pass operator when node is TSAsExpression
* Refactor shouldNotIndent
* Update util.js
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-03-31 20:25:47 +09:00
Sosuke Suzuki
30adb17173
Modify to use isBinaryish ( #7848 )
2020-03-24 11:57:10 +02:00
Sosuke Suzuki
20c7a5ab9a
Support type only import/export via babel-ts ( #7804 )
2020-03-21 17:36:05 +02:00
Sosuke Suzuki
9d9e46c8c5
Support TypeScript 3.8 export * as ns syntax ( #7764 )
2020-03-17 02:43:15 +02:00
Sosuke Suzuki
f8692f3bde
TypeScript: Print dangling comment in empty type parameters ( #7729 )
...
* Modify to print dangling comment in type parameters
* Add changelog
* Fix changelog
* Modify to support line comment
* Fix changelog
* Change line to hardline
2020-03-10 17:33:33 +03:00
Sosuke Suzuki
78fe9cab73
JavaScript: Keep comments position for assignment/variable ( #7709 )
2020-03-10 11:37:42 +02:00
Sosuke Suzuki
4de293911b
Bump @angular/compiler from 9.0.3 to 9.0.4 ( #7691 )
...
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler ) from 9.0.3 to 9.0.4.
- [Release notes](https://github.com/angular/angular/releases )
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md )
- [Commits](https://github.com/angular/angular/commits/9.0.4/packages/compiler )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-03-05 16:15:06 +09:00
Sosuke Suzuki
ac72cd3e94
Merge branch 'master' into next
2020-01-18 06:49:52 +09:00
Sosuke Suzuki
76020c3526
Update linguist-languages to support file extensions .cjs and .yaml.sed ( #7210 )
...
* Update linguist-language
* Add changelog
2020-01-09 17:15:17 +02:00
Sosuke Suzuki
332a55179e
Vue: format sfc jsx ( #7180 )
...
* Modify to enable to format vue jsx sfc
* add changelog
* Modify to avoid cspell checking, "sfcs" -> "SFC"
2020-01-09 05:14:19 +09:00
Sosuke Suzuki
d1771e8652
JavaScript: Fix moving semi for return to end of line-comment ( #7140 )
...
* Modify to fix semi for return with comment
* Add complex test case
* Add null check
* Add changelog
2019-12-16 20:11:39 +03:00