Commit Graph
100 Commits
Author SHA1 Message Date
fisker 883324dbb6 Merge branch 'main' into next
# Conflicts:
#	scripts/tools/bundle-test/package.json
#	scripts/tools/bundle-test/yarn.lock
#	src/language-js/needs-parens.js
#	tests/format/typescript/typeof/jsfmt.spec.js
#	website/package.json
#	website/yarn.lock
2023-03-18 08:57:03 +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
fisker Cheung 3fc6298c0e Stop evaluate graphql visitor keys (#14504) 2023-03-13 18:23:56 +08:00
fisker Cheung 1fb02e85d7 Update dependency hermes-eslint to v0.10.0 (#14503) 2023-03-13 17:36:12 +08:00
fisker Cheung e2c5da38f4 Fix builtin plugins (#14502) 2023-03-13 12:34:56 +08:00
fisker Cheung 6c9ba400fa Bundle printers in plugins (#14354) 2023-03-13 09:20:12 +08:00
fisker Cheung 18baca62c9 Build: Auto generate types files for plugins (#14462) 2023-03-13 09:17:24 +08:00
fisker Cheung a07927aa11 Refactor estree main print function (#14473) 2023-03-13 09:13:27 +08:00
fisker Cheung 4585fb0512 Add utilities to get descendants (#14470) 2023-03-13 09:12:48 +08:00
fisker Cheung 06aa1a3501 Ignore htmlWhitespaceSensitivity when formatting Vue SFC root blocks (#14401) 2023-03-13 09:12:11 +08:00
fisker Cheung b5210fd392 Improve internal eslint rule (#14479) 2023-03-10 15:01:30 +08:00
fisker Cheung 5365fe4fcf Simplify getPreferredQuote (#14477) 2023-03-10 11:13:13 +08:00
fisker Cheung 8f679c2fd8 Reuse getPreferredQuote (#14474) 2023-03-10 10:03:20 +08:00
fisker Cheung 80419fa69e Remove unnecessary parentheses around class expression (#14409) 2023-03-09 15:22:27 +08:00
fisker Cheung dbd5e3fe26 Add test for #14454 (#14471) 2023-03-09 09:51:29 +08:00
fisker Cheung 9bfebb4062 Fix perf test scripts (#14460) 2023-03-08 09:18:45 +08:00
fisker Cheung f1b18f2319 Add parentheses to TypeofTypeAnnotation (#14458) 2023-03-08 09:16:03 +08:00
fisker Cheung 8865ade202 Move DebugError into cli/ (#14464) 2023-03-08 09:08:59 +08:00
fisker Cheung 57b37a3c27 Move propagateBreaks to printDocToString (#14466) 2023-03-07 20:42:14 +08:00
fisker Cheung 9d328e6306 Move addAlignment to coreFormat (#14467) 2023-03-07 20:17:07 +08:00
fisker Cheung 88b67b57e4 Stop manipulate options in parsers (#14463) 2023-03-07 17:43:22 +08:00
fisker Cheung 134f6078e1 Add document/public.js to export public apis, remove internal utils (#14456) 2023-03-07 08:54:11 +08:00
fisker Cheung 8036248b0a Move prettier-ignored node print into estree printer (#14406) 2023-03-06 15:40:18 +08:00
fisker Cheung cb25bd31f5 Don't trim in html insertPragma (#14441) 2023-03-06 10:47:17 +08:00
fisker CheungandSUZUKI Sosuke aee8e3b0c2 Simplify HTML embed language parser inference (#14440)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2023-03-06 09:24:08 +08:00
fisker Cheung 375e3f8382 Refactor html parser (#14443) 2023-03-06 09:13:09 +08:00
fisker Cheung 1482ee2703 Merge inferParserByLanguage into inferParser (#14439) 2023-03-03 17:02:13 +08:00
fisker Cheung a6dcfe9076 Simplify inferParser (#14438) 2023-03-03 15:52:44 +08:00
fisker Cheung c79b3eec5e Improve cursorNode find logic (#13916) 2023-03-03 15:28:29 +08:00
fisker Cheung f8fed37dc7 Simplify inferParserByLanguage (#14437) 2023-03-03 15:12:23 +08:00
fisker 432976de11 Release 3.0.0-alpha.6 2023-03-02 17:14:27 +08:00
fisker Cheung d0ecad9c34 Use export default in .d.ts files (#14435) 2023-03-02 17:06:53 +08:00
fisker b15fe3f8fb Release 3.0.0-alpha.5 2023-03-01 17:53:55 +08:00
fisker Cheung 758dfcac67 Build: add utility to get package files (#14430) 2023-03-01 15:34:30 +08:00
fisker Cheung b9f02a9eb5 Refactor options normalization (#14410) 2023-03-01 09:58:19 +08:00
fisker Cheung 595a2beebc Add WhitespaceUtils (#13923) 2023-02-24 15:41:20 +08:00
fisker Cheung 3662619f6f Linting 2023-02-24 09:47:44 +08:00
fisker Cheung 4a26d88f9a Merge branch 'main' into next
# Conflicts:
#	src/language-js/needs-parens.js
#	tests/config/format-test.js
2023-02-24 09:40:12 +08:00
fisker Cheung bc098779c4 Add missing parentheses for decorator (#14393) 2023-02-24 09:20:34 +08:00
fisker Cheung 5f68f86621 Improve JSON parse error (#14398) 2023-02-24 09:20:03 +08:00
fisker Cheung 745e0d5223 Simplify canAttachComment (#14399) 2023-02-24 09:19:16 +08:00
fisker Cheung 24652d9186 Support babel v7.21 (#14391) 2023-02-24 08:59:53 +08:00
fisker Cheung 164eab2f86 Merge branch 'main' into next 2023-02-23 10:29:52 +08:00
fisker Cheung 2833698c63 Less: Add test for interpolation in selector (#14330) 2023-02-21 16:36:32 +08:00
fisker Cheung 47830dbedb Cleanup visitor keys for DeclareInterface and InterfaceDeclaration (#14272) 2023-02-21 16:36:05 +08:00
fisker Cheung 06a7bd1d0b Extract code from parser-postcss.js (#14387) 2023-02-21 16:35:26 +08:00
fisker Cheung 5d04f01c82 Make tryCombinations throws AggregateError(like) error (#14388) 2023-02-21 16:34:42 +08:00
fisker Cheung b6766551c7 Minor tweak to ts printer (#14392) 2023-02-21 16:13:21 +08:00
fisker Cheung f83b69111d CLI: Display posix style paths on Windows (#14333) 2023-02-19 20:27:37 +08:00
fisker Cheung b0208fc3bb Reuse attachComments (#14352) 2023-02-19 20:26:53 +08:00
fisker Cheung 0d6c8f681d Update typescript-eslint to v5.52 (#14358) 2023-02-19 11:15:06 +08:00
fisker Cheung 4fb03a7f2a Remove dynamic imports (#14369) 2023-02-18 11:28:58 +08:00
fisker Cheung be474c7891 Markdown: Remove loose-item plugin (#14372) 2023-02-17 10:01:13 +08:00
fisker Cheung 5ea9a8f81f Reduce bundle size (#14370) 2023-02-16 15:02:41 +08:00
fisker Cheung 3102686278 Update build script (#14362) 2023-02-15 12:35:14 +08:00
fisker Cheung de00f5bec0 Refactor leading semicolon print (#14313) 2023-02-13 10:31:52 +08:00
fisker Cheung 222d84f9ed Refactor literal related code (#14312) 2023-02-13 10:29:14 +08:00
fisker Cheung 282a4019c7 Extract common/util.js to utils/ (#14329) 2023-02-13 10:17:39 +08:00
fisker Cheung 83124d7fd6 Enable no-duplicate-imports rule (#14331) 2023-02-13 10:14:28 +08:00
fisker Cheung 5cdc3ab2dd Support print ChainExpression (#13735) 2023-02-13 10:11:40 +08:00
fisker Cheung cb901d0f0d Refactor ignore check (#14324) 2023-02-10 17:51:13 +08:00
fisker Cheung d6d77b908b Throw errors for index signature with declare (#14316) 2023-02-10 17:39:56 +08:00
fisker Cheung 81d56f9ba7 Use named export in core.js (#14325) 2023-02-10 17:38:29 +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 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
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
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
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