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
Sosuke Suzuki
fa723deee2
TypeScript: remove extra indentation for arrow function on variable declaration with comment ( #7094 )
...
* Remove extra indent
* add changelog
* Fix postprocess for range of TypeScript
* Remove locend from postprocess
* Add test for no-smei
* Remove hasLeadingComment
2019-12-06 12:18:38 +03:00
Sosuke Suzuki
2eca6193d7
JavaScript: Format ThrowStatement like ReturnStatement ( #7070 )
2019-12-01 12:59:15 +01:00
Sosuke Suzuki
5402f99422
Ignore test files ( #7018 )
2019-11-20 13:48:08 +03:00
Sosuke Suzuki
9b37dca0e9
TypeScript: Fix formatting of type operators as arrow function… ( #6901 )
2019-11-12 19:13:03 +01:00
Sosuke Suzuki
82257bc091
Fix to follow #6811 ( #6812 )
2019-11-05 16:18:50 +02:00
Sosuke Suzuki and Georgii Dolzhykov
cf32f29d41
Flow: Keep parentheses wrap specific FunctionTypeAnnotation ( #6717 )
...
Co-Authored-By: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2019-11-02 09:39:18 +01:00
Sosuke Suzuki and Simon Lydell
f2c6b94ee7
TypeScript: Keep semi for a class property before index signatu… ( #6728 )
...
* Modify to add semi to prop before TSIndexSignature
Co-Authored-By: Simon Lydell <simon.lydell@gmail.com >
2019-10-29 07:17:29 +01:00
Sosuke Suzuki
f207e665bc
JavaScript: Break arrays of arrays/objects if each element has more than one element/property ( #6694 )
...
* Modify to define isJestEachFunctionCall
* Modify to break ArrayExpression when parent is jest each function
* Add tests
* Update CHANGELOG.unreleased.md
* Fix comment
* Add pr number
* Update CHANGELOG.unreleased.md
* Remove hasNewLineInRange
* Modify to change logic for breaking jest each call function
* Modify to add logic for breaking ArrayExpression
* Modify to avoid mixed nested array
* Modify to remove changes for jest
* Update CHANGELOG.unreleased.md
* Update CHANGELOG.unreleased.md
2019-10-25 19:12:07 +03:00
Sosuke Suzuki
7f68db8e88
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
2019-10-22 16:05:10 +03:00
Sosuke Suzuki
60d6f139a9
Docs: update docs to follow #6665 ( #6670 )
2019-10-16 18:53:01 +02:00
Sosuke Suzuki
3a998df02e
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
2019-10-16 00:11:48 +09:00
Sosuke Suzuki
02ec2337b8
Modify to follow #6638 ( #6645 )
2019-10-13 21:51:02 +02:00
Sosuke Suzuki
02cbd15ec2
TypeScript: Fix incorrectly removes double parentheses around types ( #6604 )
2019-10-08 16:56:08 +03:00
Sosuke Suzuki
13db243935
Update CHANGELOG.unreleased.md ( #6611 )
2019-10-07 17:32:10 +02:00
Sosuke Suzuki
32dd447271
Refactor: Move functions unrelated to printing from printer-estree.js to utils.js ( #6562 )
2019-10-03 17:45:03 +03:00
Sosuke Suzuki
1aef2b13f4
Website: Update documentation of resolveConfigFile ( #6568 )
2019-10-02 17:34:58 +02:00
Sosuke Suzuki
c0059b06c0
Fix lint ( #6526 )
2019-09-27 14:09:43 +03:00
Sosuke Suzuki
27e777e476
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
2019-09-24 18:59:54 +03:00
Sosuke Suzuki
2e2368f5d7
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
2019-09-23 18:35:06 +02:00
Sosuke Suzuki
c5c8862333
JavaScript: Fix Bad format for multi-line optional chaining with comment ( #6506 )
2019-09-23 15:00:34 +03:00
Sosuke Suzuki
8e8411b7c7
Fix lint error ( #6465 )
2019-09-11 13:10:44 +03:00
Sosuke Suzuki
3f89bba231
JavaScript: Fix formatting on long named exports ( #6446 )
...
* Modify to put specific export inline
* Add tests
* Fix tests
* Modify to support default exports
* Update CHANGELOG.unreleased.md
* Modify to refactor
* Add pr link
* Modify to rename "content" -> "printed"
* Modify to define canBreak helpter
* Fix from linter
* Update CHANGELOG.unreleased.md
* Add tests
2019-09-11 12:10:34 +03:00
Sosuke Suzuki
8f0fdba4ba
JavaScript: Fix ugly formatting parens wrap binary expressions… ( #6441 )
...
* Modify to break specific call expression correctly
* Add tests
* Update CHANGELOG.unreleased.md
* Add tests
* Fix tests
* Add pr link
2019-09-07 14:46:00 +02:00
Sosuke Suzuki
2523a017aa
JavaScript: object destructuring with parameter decorators ( #6411 )
2019-08-30 07:07:00 +02:00
Sosuke Suzuki
77e79bbfa5
TypeScript: Fixed to break line and add a semi in one execution on one line long mapped types ( #6420 )
2019-08-29 20:14:45 +02:00