fisker Cheung
05d20a63a4
Exclude node at rangeStart ( #9704 )
2020-11-30 12:29:48 +08:00
fisker Cheung
902d524d2f
Treat .prettierrc as yaml ( #8105 )
2020-11-30 12:23:20 +08:00
fisker Cheung
664d0d33b5
Fix inconsistent language comment detection ( #9743 )
2020-11-26 19:30:57 +08:00
fisker Cheung
25d53fa9b3
SCSS/LESS: Fix comment inside parens ( #9710 )
2020-11-26 19:28:00 +08:00
fisker Cheung
5f01f34453
Add semi to DeclareExportAllDeclaration ( #9767 )
2020-11-25 19:26:20 +08:00
dependabot[bot] and fisker
21dd12d370
Build(deps): Bump @glimmer/syntax from 0.66.1 to 0.67.0 ( #9762 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-11-24 19:26:14 +08:00
fisker Cheung
d02a367e64
Remove JSXText spacial case in comment attaching ( #9759 )
2020-11-24 17:37:29 +08:00
Juriy Zaytsev and fisker
90abbb7924
[Glimmer] Preserve tilde comments ( #9082 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2020-11-24 14:45:03 +08:00
dependabot[bot] and fisker
82603f2609
Build(deps): Bump @babel/parser from 7.12.5 to 7.12.7 ( #9748 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-11-24 14:24:30 +08:00
fisker Cheung and Georgii Dolzhykov
f254314feb
Use meriyah ( #9731 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-11-23 13:57:13 +08: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
fisker Cheung
4f330f0a78
Fix comments inside JSX end tag ( #9711 )
2020-11-21 16:34:28 +08:00
fisker Cheung
f532bf2b49
Refactor: Module releated format ( #9691 )
2020-11-19 08:58:56 +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
fisker Cheung
702f543635
YAML: Apply trailingComma option ( #9665 )
2020-11-18 09:05:56 +08:00
fisker Cheung
85e5cfaf2f
YAML: Fix comments in flowMapping and flowSequence ( #9669 )
2020-11-17 21:38:50 +08:00
dependabot[bot]
e73576a64b
Build(deps): Bump @glimmer/syntax from 0.65.0 to 0.66.0 ( #9693 )
2020-11-17 07:59:26 +00:00
fisker Cheung
386759c6f7
Test: Allow multiple parsers in error test ( #9648 )
2020-11-16 15:19:50 +08:00
fisker Cheung
f9f66711b9
Fix comments in require() with no argument ( #9670 )
2020-11-16 01:11:53 +08:00
fisker Cheung and Georgii Dolzhykov
35a1497024
Update remark-math to v3 ( #7938 )
...
* bump remark-math to 3.0.1
* escape $ only it was escaped in the input
* remove unsupported syntax from tests
remark-math@3 doesn't support text after the closing fence ($$). Such $$ aren't parsed as a closing fence anymore.
* refactor
* add a test
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-11-15 19:03:35 +02:00
Georgii Dolzhykov
e721ef30ea
Flatten function expression parameters in hugged last argument ( #9662 )
...
Fixes #3376
This was done for arrow functions in #1305 ("Avoid breaking arguments for last arg expansion").
This PR enables the same for function expressions unless the function expression is the only argument.
2020-11-14 13:17:01 +02:00
fisker Cheung
4bcf8a3a36
Markdown: Fix extra empty line added after empty table ( #9654 )
2020-11-13 19:13:03 +08:00
fisker Cheung and Georgii Dolzhykov
2a9d0f66d5
Typescript: Fix prettier-ignored mapped types ( #9551 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-11-13 09:06:02 +08:00
fisker Cheung
28d914b811
Vue: Consistent slot, support Vue3 ( #9609 )
2020-11-13 09:05:30 +08:00
Brian Kim
d0f813e5d4
Revert #9011 , don’t add parens when yielding simple JSX expressions ( #9650 )
2020-11-13 08:49:15 +08:00
fisker Cheung
60a5729a19
Move prettier-ignore related functions into language-js/ ( #9555 )
2020-11-10 09:12:46 +08:00
c91914e610
Build(deps): Bump @babel/parser from 7.12.3 to 7.12.5 ( #9597 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com >
Co-authored-by: fisker <lionkay@gmail.com >
2020-11-06 19:30:42 +08:00
fisker Cheung
7836466d67
Test: snapshot parse errors ( #9467 )
2020-11-06 15:27:04 +08:00
fisker Cheung
7075c9cff4
Exclude inline comments from flow annotation comments ( #9572 )
2020-11-05 23:12:23 +08:00
fisker Cheung
9937fd22ba
Simplify flow Variance node print ( #9571 )
2020-11-05 23:10:53 +08:00
fisker Cheung
3d7016e2dc
Add meriyah parser ( #9514 )
2020-11-05 14:08:37 +08:00
fisker Cheung
4295bb2a55
Flow: Improve comment types detection ( #9563 )
2020-11-04 09:22:30 +08:00
fisker Cheung
bbd1f5d1d5
Remove for-each-in syntax ( #9585 )
2020-11-04 08:52:49 +08:00
fisker Cheung and Georgii Dolzhykov
db90d67c41
Flow: Fix missing parentheses around prettier-ignored arguments ( #9553 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2020-11-02 10:42:31 +08: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
fisker Cheung
3f4c8c1df0
Treat more types as simple type ( #9543 )
2020-10-31 21:15:35 +08:00
fisker Cheung
d2ce7d44d5
Refactor: Improve readability ( #9539 )
2020-10-30 16:52:17 +08:00
dependabot[bot] and fisker
d91607bc3d
Build(deps): Bump graphql from 15.3.0 to 15.4.0 ( #9506 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-30 14:13:07 +08:00
fisker Cheung
b239263e23
Flow: support BigIntLiteralTypeAnnotation and BigIntTypeAnnotation ( #9523 )
2020-10-30 10:22:17 +08:00
fisker Cheung
eabceb2dcb
Consistent type print ( #9521 )
2020-10-30 09:56:47 +08:00
dependabot[bot] and fisker
bc9db85490
Build(deps): Bump postcss-less from 3.1.4 to 4.0.0 ( #9471 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-26 09:46:00 +08:00
fisker Cheung and Sosuke Suzuki
bb31bf481c
Refactor function parameters print ( #9489 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2020-10-26 09:22:37 +08:00
fisker Cheung
98e85eec74
Test "import assertions" on other parsers ( #9475 )
2020-10-23 20:44:29 +08:00
fisker Cheung
6fbf38b55b
Add parens to object value that it's an assignment ( #9484 )
2020-10-23 20:43:42 +08:00
Daniel Sainati and fisker
80a0856107
Support Flow this parameter annotations ( #9457 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-23 20:43:17 +08: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
George Zahariev
d59a107f4a
Support Flow Enums with unknown members ( #9432 )
2020-10-20 14:40:18 +08:00
fisker Cheung
140cb14f3a
JS: Fix import {a as a} and export {a as a} format ( #9435 )
2020-10-20 14:38:34 +08:00