Commit Graph
47 Commits
Author SHA1 Message Date
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
Sébastien Règne 54586e00b4 feat: Add name to errors (#14913)
* feat: Add name to errors.

* feat: Add name to errors.

* Add tests
2023-06-13 13:57:43 +09: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
renovate[bot]andfisker Cheung 4562c116b1 Update dependency hermes-parser to v0.11.1 (#14780)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-05-04 15:05:21 +08:00
Panagiotis Vekris 2eaf5763e9 Support type guards in Flow (#14767) 2023-04-27 14:09:17 +08:00
Jordan Brownandfisker f95b0c0296 Support Flow Mapped Types (#14619)
Co-authored-by: fisker <lionkay@gmail.com>
2023-04-07 09:56:18 +08:00
fisker Cheung 78b0a6bb80 Fix plugin resolve logic (#14663) 2023-04-04 10:53:50 +08:00
fisker Cheung 42584d48d2 Remove outdated visitor key for TSAbstractMethodDefinition (#14662) 2023-04-04 09:07:29 +08:00
fisker Cheung 4965a790cb Forbid decorators on object property (#14661) 2023-04-04 09:07:15 +08:00
fisker Cheung 75cd9992f0 Recognize the new search element (#14615) 2023-03-29 09:14:24 +08:00
Sam Zhouandfisker b7ab34073e Support conditional type and infer type in Flow (#14573)
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-28 09:04:35 +08:00
fisker Cheung fc81cc13cb Fix plugin loading cache (#14576) 2023-03-24 13:19:18 +08:00
Seiyaandfisker e154250e19 Format TypeScript expressions in Vue template attributes (#14506)
Co-authored-by: fisker <lionkay@gmail.com>
2023-03-24 09:10:49 +08:00
fisker Cheung 6d21de11fd Update plugin build system (#14571) 2023-03-24 08:44:25 +08:00
fisker Cheung 3fc6298c0e Stop evaluate graphql visitor keys (#14504) 2023-03-13 18:23:56 +08:00
fisker Cheung 4585fb0512 Add utilities to get descendants (#14470) 2023-03-13 09:12:48 +08:00
fisker Cheung 595a2beebc Add WhitespaceUtils (#13923) 2023-02-24 15:41:20 +08:00
fisker Cheung 47830dbedb Cleanup visitor keys for DeclareInterface and InterfaceDeclaration (#14272) 2023-02-21 16:36:05 +08:00
fisker Cheung be84156d43 Treat hashbang as comment in babel parser(like other parsers) (#14302) 2023-02-08 15:58:25 +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
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 CheungandSosuke Suzuki 01a9241959 Improve assertDoc (#13917)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2023-01-11 11:22:10 +08:00
Sosuke Suzuki 812ceb7657 Update visitor-keys tests 2022-12-08 22:03:33 +09:00
fisker Cheung 3e49250841 Update flow-parser to v0.194.0 (#13928) 2022-12-05 10:11:01 +08:00
fisker Cheung e83bd73d88 Add test for massageAst (#13739) 2022-11-14 19:44:41 +08:00
fisker Cheung 9eafbf6854 Enable unicorn/prefer-string-replace-all rule (#13788) 2022-11-06 19:55:24 +08:00
fisker Cheung bf6cf1c96c Extract language-json (#13742) 2022-11-02 10:32:46 +08:00
fisker Cheung 40f3bced17 Update babel to v7.20.0 (#13733) 2022-10-29 16:28:52 +08:00
fisker Cheung 0e06cc4d62 Minor refactor to stripTrailingHardline (#13695) 2022-10-21 23:33:33 +08:00
fisker Cheung 927a214ca3 Refactor MDX print (#13640) 2022-10-17 10:10:35 +08:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
fisker Cheung bb2104dd7c Support optional chaining in .at() transform (#13528) 2022-09-26 22:54:17 +08:00
fisker Cheung 824690fcc7 Allow parsers initialize asynchronously (#13449) 2022-09-22 15:13:37 +08:00
Georgii Dolzhykov 5766433a62 Get rid of regexp and handle cursor in trim in doc printer (#13426) 2022-09-06 15:57:47 +03:00
fisker Cheung 17cb07665f Improve css/yaml embed traverse (#13294) 2022-08-30 11:00:12 +08:00
fisker Cheung 4a224a7221 Add print pre-check to handlebars, html, markdown, yaml (#13392) 2022-08-29 18:16:38 +08:00
fisker Cheung 5c465a77b3 Check all types in traverseDoc (#13357) 2022-08-27 18:41:33 +08:00
fisker Cheung d921087d12 Throw errors when too many 'cursor' found in doc (#13339) 2022-08-26 21:33:49 +08:00
fisker Cheung a166544583 Forbid pass non-node object to print() (#13293) 2022-08-25 19:19:46 +08:00
fisker Cheung edf36039f9 Add test for traverseDoc and findInDoc (#13349) 2022-08-25 01:12:41 +03:00
fisker Cheung 5fa0802315 Add getVisitorKeys (#13255) 2022-08-17 09:47:08 +08:00
fisker Cheung 86424ccc22 Remove the parsers argument for plugin.parsers.parse (#13268) 2022-08-16 09:52:27 +08:00
fisker Cheung e096ea7552 Use try/finally in AstPath (#13216) 2022-08-05 21:58:54 +08:00