Sosuke Suzuki
db73cc8e0c
Print end-of-line comment for continue/break statements ( #12075 )
...
* Add handleBreakAndContinueStatementComments to handleEndOfLineComment
* Add tests
* Add changelog
* Update tests
* Add more tests
* Fix for own line comments
* Fix tests
* Fix tests
* Fix tests
* Add unstable tests
2022-01-19 22:29:37 +09:00
dependabot[bot]
db0604eddd
Build(deps): Bump @babel/parser from 7.16.4 to 7.16.6 ( #11973 )
2021-12-15 02:04:49 +00:00
Sosuke Suzuki
7acdac30db
Remove unnecessary parentheses for decorators ( #11849 )
...
* Remove unnecesary parans for typescript parser
* Add tests
* Update changelog
2021-11-21 15:54:18 +09:00
Titus and sosukesuzuki
cca8469388
Add support for MDX 2 comments ( #11563 )
...
* Add support for MDX 2 comments
This adds support for MDX 2 comments (which are the same as other
comments inside JSX) in addition to MDX 1 comments (HTML-like
constructs).
Related to GH-10706.
Related to wooorm/xdm#61 .
* Fix blank line before comment
* Add `esComment` to `printer-markdown`
* Add embedded test
* Remove embedded formatter
* Add support for es-comments as blocks & test prettier-ignore comments
* Add a test for mdx pragma
* Remove duplicate fixture
* Add changelog
* Add note clarifying support
Co-authored-by: sosukesuzuki <aosukeke@gmail.com >
2021-11-17 16:49:19 +09:00
Sosuke Suzuki
9e1038c0eb
Support TypeScript 4.5 syntax ( #11813 )
...
* Update dependencies
* Add tests for type-only module specifiers
* Add tests for ts import assertions
* Add tests for ts private-fields-in-in
* Update changelog
* Update misc tests
* Update SYNTAX_KIND_PROPERTY_DEFINITION
* List typescript from error list
2021-11-16 10:15:08 +09:00
Sosuke Suzuki
2eb7cdd613
(only babel-ts) Support TypeScript 4.5 type-only module specifiers ( #11723 )
...
* Support TypeScript 4.5 type-only module specifiers
* Add tests
* Update changelog
2021-10-30 21:52:49 +09:00
Sosuke Suzuki
6f602d1126
Fix formatting for tagged template decorators ( #11717 )
...
* Fix formatting for tagged template decorators
* Add changelog
2021-10-25 21:23:42 +09:00
Sosuke Suzuki
65e01b7c03
Update typescript-estree to 5.x ( #11676 )
...
* Remove useJSXTextNode
* Replace TSAbstractClassProperty to TSAbstractPropertyDefinition
* Throw syntax error for inalid abstract property
* Support PropertyDefinition for quoted props
* Refactor postprocess
* Add tests for removing TSParenthesizedType
* Install new ts-estree
* Remove unused handling TSPrivateIdentifier
* Fix lint problem
* Address review
2021-10-20 15:13:02 +09:00
Sosuke Suzuki and dependabot[bot]
fb7451a1a2
Support right precedence hack-style pipeline ( #11557 )
...
* Build(deps): Bump @babel/parser from 7.15.5 to 7.15.7
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser ) from 7.15.5 to 7.15.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.15.7/packages/babel-parser )
---
updated-dependencies:
- dependency-name: "@babel/parser"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Build(deps): Bump @babel/parser from 7.15.5 to 7.15.6
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser ) from 7.15.5 to 7.15.6.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.15.6/packages/babel-parser )
---
updated-dependencies:
- dependency-name: "@babel/parser"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* tmp
* paren
* tmp
* Return parts simply
* Recursive for hack pipe
* Update tests
* Revert shouldFlatten
* Revert needs-parens
* Fix
* Fix lint problems
* Update error message
* Fix isEnabledHackPipeline logic
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-02 11:34:32 +09:00
dependabot[bot]
47cfb6beb3
Build(deps): Bump typescript from 4.3.5 to 4.4.2 ( #11423 )
2021-08-29 09:37:09 +00:00
dependabot[bot] and Sosuke Suzuki
29b116b4a1
Build(deps): Bump @babel/parser from 7.15.2 to 7.15.3 ( #11345 )
...
* Build(deps): Bump @babel/parser from 7.15.2 to 7.15.3
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser ) from 7.15.2 to 7.15.3.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.15.3/packages/babel-parser )
---
updated-dependencies:
- dependency-name: "@babel/parser"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Add tests for `@babel/parser` 7.15.3 (#11366 )
* Add tests for babel/babel#13659
* Add tests for babel/babel#13655
* Add tests for babel/babel#13645
* Update tests
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2021-08-19 07:26:12 +08:00
Sosuke Suzuki
53f95f3500
Support hack-style pipeline ( #11335 )
...
* Avoid to conflicts to v8intrinsic plugin
* Support hack-style pipeline
* Update tests for hask-style pipeline
* Update tests 2
* Add changelog
* Update misc tests
* Address reviews
* Fix type error
* Copy plugin array
* Add tests
* Address review
* Add error tests
2021-08-15 01:16:13 +09:00
Sosuke Suzuki
1645e7a9c4
Update to babel/parser 7.15.0 ( #11310 )
...
* Update to babel/parser 7.15
* Avoid plugin conflicts
* Remove allowAwaitOutsideFunction
* Add remove private-in
* Update tests for top-level-await
* Update typescript tests
* Handle bar style record/tuple
* Update tests
* Use appendPlugin
* Dont consider about bar style record and tuple
* Revert appendChild
* Update appendPlugins
2021-08-05 19:14:42 +09:00
fisker Cheung
894f841fbd
Style: Enforce extensions ( #11227 )
2021-07-21 09:10:34 +08:00
fisker Cheung
10053999d7
Update meriyah to v4.2.0 ( #11194 )
2021-07-12 14:45:33 +08:00
09222ed6e8
Build(deps): Bump espree from 7.3.1 to 8.0.0 ( #11162 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2021-07-07 18:53:09 +08:00
dependabot[bot]
4672b21177
Build(deps): Bump @babel/parser from 7.14.4 to 7.14.5 ( #11065 )
2021-06-13 17:08:22 +00:00
Sosuke Suzuki
06065bf49b
Support TypeScript 4.3 ( #10945 )
...
* Update deps
* Add tests
* Add changelog
2021-05-25 10:39:32 +03:00
fisker Cheung
877e64c046
Fix missing parentheses on async inside for..of ( #10781 )
2021-05-06 16:53:48 +03:00
Sosuke Suzuki
711c6d0d27
Support typescript 4.3 via babel ( #10811 )
...
* Suppor type members get/set
* Add tests for static index signature in class
* Support override modifier in class
* Add changelog
2021-05-05 22:32:51 +03:00
Sosuke Suzuki
63c744823b
Update babel parser ( #10802 )
...
* Update
* Use error codes instead of error messages
* Update js tests
* Update ts tests
* Add comments
* Remove plugins enabled by default
* update misc error tests
* Remove moduleStringNmaes
* use allowedMessagesCode directly
* Remove some misc tests
* Update snapshots for integration tests
* Add Redeclaration to cspell.json
2021-05-03 12:12:25 +09:00
fisker Cheung
ece93681f1
Restructure test files ( #10415 )
2021-04-25 20:01:56 +08:00