Commit Graph
8244 Commits
Author SHA1 Message Date
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 6b40e2e51e Move comment attach/print code into main/comments/ (#14327) 2023-02-10 15:33:13 +08:00
fisker Cheung e0fb241467 Rename variables for shared util (#14323) 2023-02-10 14:24:38 +08:00
fisker Cheung e9ae01a6da Update prettier.util.{isPreviousLineEmpty,isNextLineEmpty} (#14320) 2023-02-10 14:23:42 +08:00
fisker Cheung caf6f6c64c Add getNextNonSpaceNonCommentCharacter to prettier.util (#14317) 2023-02-09 17:21:36 +08:00
fisker Cheung b96dc57cd3 Replace getNextNonSpaceNonCommentCharacterIndex with getNextNonSpaceNonCommentCharacterIndexWithStartIndex internally (#14319) 2023-02-09 16:32:10 +08:00
fisker Cheung c05723e7b0 Simplify getNextNonSpaceNonCommentCharacter (#14318) 2023-02-09 16:05:14 +08:00
fisker Cheung 62827ab4d5 Flow: Print trailing comma in type parameters when --trailing-comma=es5 (#14085) 2023-02-09 10:01:42 +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 474b8dd031 Add printAbstractToken (#14308) 2023-02-08 15:29:46 +08:00
fisker Cheung aa0c23f833 yarn dedupe 2023-02-08 13:32:44 +08:00
fisker Cheung b1ef30dd17 Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	src/language-js/comments/handle-comments.js
#	src/language-js/needs-parens.js
#	src/language-js/print/type-parameters.js
#	yarn.lock
2023-02-08 12:37:23 +08:00
fisker Cheung cf409fe6a4 Clean changelog 2023-02-08 11:19:08 +08:00
fisker Cheung 4e88dd1510 Git blame ignore 2.8.4 2023-02-08 11:14:52 +08:00
fisker Cheung f3b23ab63c Bump Prettier dependency to 2.8.4 2023-02-08 11:14:51 +08:00
fisker Cheung e681edb67c Release 2.8.4 2023-02-08 11:04:32 +08:00
fisker Cheung 0703090106 Rename isJsxNode as isJsxElement (#14306) 2023-02-08 09:41:51 +08:00
fisker Cheung 6bb24b2c5a Fix leading comments in mapped types with readonly (Cherry-pick #13427) (#14310) 2023-02-08 09:40:59 +08:00
fisker Cheung 399f2fae40 Add changelog for #14206 (#14311) 2023-02-08 09:40:23 +08:00
fisker Cheung 9842b29ca3 Recognize @satisfies in Closure-style type casts (#14262) 2023-02-07 15:19:09 +08:00
renovate[bot]andfisker Cheung 4d80f5cf17 chore(deps): update dependency flow-parser to v0.199.1 (#14298)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-02-07 09:27:21 +08:00
renovate[bot] 8c1915f6e0 Update dependency cspell to v6.22.0 (#14304)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-06 11:18:16 +08:00
fisker Cheung bc18fa4397 Fix incorrect removal of parentheses when using an infer with a constraint in a function predicate (#14279) 2023-02-06 11:17:48 +08:00
renovate[bot] 0254078a6d Update dependency eslint-plugin-compat to v4.1.0 (#14305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-06 11:17:05 +08:00
fisker Cheung d94c813f86 Use printStatementSequence to print babel directives (#14257) 2023-02-06 10:54:23 +08:00
fisker Cheung bad0906a8d Avoid unnecessary print() in printStatementSequence (#14255) 2023-02-06 10:45:33 +08:00
fisker Cheung 5d4380372e TypeScript: Forbid invalid tuple label (#14256) 2023-02-06 10:44:46 +08:00
fisker Cheung ac91baff0e Fix hasMultipleHeritage logic (#14289) 2023-02-06 10:44:11 +08:00
fisker Cheung 29a7b3ed88 Refactor printDanglingComments (#14288) 2023-02-06 10:25:45 +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
renovate[bot] 0e20c839cb chore(deps): update dependency typescript to v4.9.5 (#14296)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-05 11:09:55 +08:00
renovate[bot] 28ac90e1ed chore(deps): update typescript-eslint to v5.50.0 (#14300)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-05 11:05:06 +08:00
renovate[bot] 9413a01b23 chore(deps): update dependency cspell to v6.21.0 (#14297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-05 11:04:35 +08:00
renovate[bot] dbce21394d chore(deps): update dependency @angular/compiler to v15.1.3 (#14294)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-05 11:03:15 +08:00
renovate[bot] 4486cef799 chore(deps): update dependency pretty-bytes to v6.1.0 (#14299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-05 11:01:37 +08:00
renovate[bot] 68a1512ad3 chore(deps): update yarn to v3.4.1 (#14301)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-05 10:57:26 +08:00
fisker Cheung 39dadc9fad Stop checking invalid properties (#14274) 2023-02-03 11:12:48 +08:00
fisker Cheung bd402ab67e Reduce size of meriyah parser (#14278) 2023-02-03 11:10:00 +08:00
fisker Cheung 97c8e3c18f Run JSX tests on acorn, espree and meriyah (#10494) 2023-02-01 14:20:36 +08:00
fisker Cheung 3017876833 Forbid test babel parser in typescript/ (#14281) 2023-02-01 09:30:36 +08:00
fisker Cheung 3cb08c875d Test: auto test babel-flow parser (#14245) 2023-01-31 20:30:11 +08:00
fisker Cheung 6eb9359b0e Forbid initializer of TSPropertySignature (#14264) 2023-01-31 10:57:16 +08:00
fisker Cheung 20e891544c Add printTypeScriptAccessibilityToken (#14273) 2023-01-31 10:43:28 +08:00
fisker Cheung 6d7cdbaf98 Update angular-estree-parser to v6 (#14263) 2023-01-31 10:26:13 +08:00
fisker Cheung 3cec460008 Remove printing modifiers of TSEnumDeclaration (#14265) 2023-01-31 10:07:02 +08:00
fisker Cheung a7d8359022 Remove dead code for TSInterfaceDeclaration (#14267) 2023-01-31 09:31:27 +08:00
fisker Cheung cf421a9eb0 Remove printing modifiers of TSModuleDeclaration (#14266) 2023-01-31 09:25:04 +08:00
Riad Krim f602be5a47 Update embeddedLanguageFormatting option documentation (#14048) 2023-01-31 08:16:17 +08:00
renovate[bot] 24b24a92d7 Update dependency angular-html-parser to v4 (#14135)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-30 15:06:06 +08:00
fisker Cheung e01f86aa09 Skip parsing inline JavaScript code in Less (#14109) 2023-01-30 13:31:23 +08:00