Commit Graph
102 Commits
Author SHA1 Message Date
fisker Cheung 6eda34db44 Test: Rename run_spec to runFormatTest (#15943) 2024-01-19 17:20:24 +08:00
fisker Cheung 70c9c56c67 Improve babel parse error message (#15928) 2024-01-16 10:27:49 +08:00
renovate[bot]andfisker b4ed91bffb chore(deps): update typescript-eslint to v6.18.1 (#15881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2024-01-15 14:42:44 +08:00
fisker Cheung 4c3cfa7a81 Support TypeScript 5.3 (#15718) 2023-12-05 15:39:24 +08:00
fisker Cheung b15d287f81 Update Jest to v30 (#15580) 2023-11-27 23:25:58 +08:00
fisker Cheung 36d1b8b09d Fix babel error message (#15581) 2023-11-03 19:35:55 +08:00
SUZUKI Sosuke 4b432496df Support deferred import evaluation and source phase import syntax (#15487) 2023-10-09 08:52:48 +09:00
SUZUKI Sosuke edfe46051f Support optional chaining assignment (#15488) 2023-10-09 08:36:11 +09:00
SUZUKI Sosuke 14ddf452c4 Update @babel/parser to 7.23.0 (#15485) 2023-10-08 22:26:13 +08:00
renovate[bot]andfisker Cheung 4eaf68cd6c chore(deps): update dependency @babel/parser to v7.22.16 (#15380)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-09-12 19:18:02 +08:00
SUZUKI Sosukeandfisker Cheung 1ce97d13a3 Support TypeScript 5.2 using / await using declaration (#15321)
* Update `@typescript-eslint` packages

* Install `typescript`

* Tweaks snapshot tests

* Tweaks error files

* Add tests for `using` with types

* Add changelog

* Update misc tests

* Update snapshots

* Revert misc tests and remove `typescript`

* Update changelog_unreleased/typescript/15321.md

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

* Fix file name typo

* Keep valid file

* Update tests

* Update changelog_unreleased/typescript/15321.md

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

* Remove non-existing filenames.

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-08-29 15:51:50 +09:00
fisker Cheung dc3ebe812f Add test to close #14635 (#15254) 2023-08-23 15:57:07 +09:00
fisker Cheung 12fd8891af Update typescript-eslint to v6 (#14429) 2023-07-22 02:35:30 +08:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
renovate[bot] bf581d35cf chore(deps): update dependency acorn to v8.9.0 (#14951)
Signed-off-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-18 10:43:10 +08:00
SUZUKI SosukeandNicolò Ribaudo 7ad852636d Support Import Attributes (#14863)
* Print import attributes

* Update visitor keys for import attributes

* Update snapshots for visitor-keys

* Update `babel-plugins` tests

* Update import attributes tests

* Update misc tests

* Add changelog

* Enable `importAttributes` and `importAssertions`

* Print ImportAssertion syntax

* Add `babel-plugins` tests

* Add import assertions tests

* Add misc tests for import assertions

* Update changelog

* Fix words

* Use `deprecatedAssertSyntax`

* Update `@babel/parser`

* Use deprecatedAssertSyntax

* Remove needless tests

* Update `@babel/types`

* Update visitor-keys

* Run `yarn dedupe`

* Update src/language-js/print/module.js

Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>

* Address review

---------

Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>
2023-05-31 00:47:12 +09:00
SUZUKI Sosuke c1296105f3 Update @babel/parser to 7.22.0 (#14861)
* Update `@babel/parser` and `@babel/types`

* Update error message snapshots

* Run `yarn dedupe`

* Update `@babel/generator`

* Install new `@babel/parser`
2023-05-27 22:06:34 +09:00
SUZUKI Sosukeandfisker Cheung cfb3b87efb Fix trailing coma print in type prameters, improve jsx parse (#14688)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-04-21 13:18:29 +08:00
renovate[bot]andfisker f85e7b07bf Update dependency @babel/parser to v7.21.3 (#14522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-20 10:29:46 +08:00
fisker CheungandSosuke Suzuki d797f0cff2 Support TypeScript 5 (#13819)
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-03-15 11:06:31 +08:00
921eaf4690 Break on TypeScript parameter properties (#14402)
* add test for parameter properties

* break parameters for TypeScript parameter properties

ISSUE: #5666

* add a test pattern

* add changelog

* use getFunctionParameters

* Fix bad rebase

* Rename variables

* More tests

* Rename variable

* Fix snapshots

* Fix changelog

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-03-12 00:06:39 +09:00
renovate[bot]andfisker 444876025f Update dependency @babel/parser to v7.21.2 (#14413)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-02-26 18:10:17 +08:00
fisker Cheung 5f68f86621 Improve JSON parse error (#14398) 2023-02-24 09:20:03 +08:00
fisker Cheung 24652d9186 Support babel v7.21 (#14391) 2023-02-24 08:59:53 +08:00
fisker Cheung 47830dbedb Cleanup visitor keys for DeclareInterface and InterfaceDeclaration (#14272) 2023-02-21 16:36:05 +08:00
fisker Cheung 0d6c8f681d Update typescript-eslint to v5.52 (#14358) 2023-02-19 11:15:06 +08:00
fisker Cheung d6d77b908b Throw errors for index signature with declare (#14316) 2023-02-10 17:39:56 +08:00
fisker CheungandGeorgii Dolzhykov add84358d8 Remove flow plugin from babel parser (#14314)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2023-02-10 17:27:17 +08:00
fisker Cheung 5d4380372e TypeScript: Forbid invalid tuple label (#14256) 2023-02-06 10:44:46 +08:00
renovate[bot]andfisker e03671797e chore(deps): update dependency @babel/parser to v7.20.15 (#14295)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-02-05 13:59:21 +08:00
fisker Cheung 39dadc9fad Stop checking invalid properties (#14274) 2023-02-03 11:12:48 +08:00
fisker Cheung 6eb9359b0e Forbid initializer of TSPropertySignature (#14264) 2023-01-31 10:57:16 +08:00
fisker Cheung 3cec460008 Remove printing modifiers of TSEnumDeclaration (#14265) 2023-01-31 10:07:02 +08:00
fisker Cheung cf421a9eb0 Remove printing modifiers of TSModuleDeclaration (#14266) 2023-01-31 09:25:04 +08:00
fisker Cheung 1054e56fed Fix snapshots 2023-01-29 11:03:34 +08:00
fisker Cheung 549a59dd7f Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/language-handlebars/printer-glimmer.js
#	src/language-handlebars/utils.js
#	tests/format/handlebars/element-node/jsfmt.spec.js
#	tests/format/misc/errors/handlebars/jsfmt.spec.js
#	yarn.lock
2023-01-29 11:02:56 +08:00
renovate[bot]andfisker Cheung 1dafaa0392 Update flow-parser to v0.198 (#14182)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-01-28 09:56:49 +08:00
fisker Cheung 310a5b1ba5 Handlebars: Improve HTML void element check (#14110) 2023-01-22 21:50:42 +08:00
fisker Cheung 289fcbc3d7 Improve handlebars parse error message (#14194) 2023-01-18 08:28:56 +08:00
fisker a51568db85 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/vendors/vendor-meta.json
#	src/language-js/needs-parens.js
#	src/language-js/utils/index.js
#	tests/format/misc/errors/js/assignment/jsfmt.spec.js
#	tests/format/misc/typescript-only/__snapshots__/jsfmt.spec.js.snap
#	vendors/chalk.js
#	vendors/execa.js
#	vendors/mem.js
#	vendors/string-width.js
#	vendors/tempy.js
#	yarn.lock
2022-12-26 10:42:45 +08:00
renovate[bot]andfisker fa3a089baa chore(deps): update dependency @babel/parser to v7.20.7 (#14054)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-12-26 10:32:28 +08:00
Sosuke Suzukiandfisker 7564339a15 Support type annotations on auto accessors via babel-ts (#14049)
* Update `@babel/parser`

* Move tests to `/format/typescript`

* Update tests

* Add changelog

* Dedupe

Co-authored-by: fisker <lionkay@gmail.com>
2022-12-23 16:41:36 +09:00
fisker CheungandGeorgii Dolzhykov a6b6184d75 Add missing parentheses to let (#14000)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-12-22 09:42:03 +08:00
fisker CheungandSosuke Suzuki b728e0bf46 Minor refactor to flow printer (#14002)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-12-19 13:19:11 +08:00
fisker Cheung fefc9e142d Improve TypeScript error location (#13983) 2022-12-12 17:26:11 +08:00
fisker Cheung f2701a3d6f TypeScript: Throw errors for invalid modifiers (#13929) 2022-12-12 16:38:45 +08:00
renovate[bot]andfisker Cheung 0aceb64c6d Update dependency @babel/parser to v7.20.5 (#13939)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-05 14:09:26 +08:00
fisker Cheung f8f0c41b20 TypeScript: Throw errors for invalid modifiers (#13877)
Fixes https://github.com/prettier/prettier/issues/9760
2022-11-25 17:52:42 +08:00
fisker Cheung b697a596a6 TypeScript: Throw errors for invalid modifier on type parameter (#13853) 2022-11-18 09:54:23 +08:00
renovate[bot]andfisker Cheung 16b043abb9 Update dependency meriyah to v4.3.3 (#13837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-14 20:31:58 +08:00