Commit graph

35 commits

Author SHA1 Message Date
Dunqing
0c19991471
feat(prettier): print CallExpression arguments correctly (#1631) 2023-12-10 15:59:13 +08:00
Wenzhe Wang
bb4a2c7930
chore: fix typo (#1627) 2023-12-04 21:52:50 +08:00
Wenzhe Wang
cfe207fb53
feat(tasks): ignore some invalid cases and support read parser from source text (#1616) 2023-12-03 21:17:47 +08:00
Wenzhe Wang
9af24842a8
fix(tasks): escape more special characters (#1615)
We also need escape `$` and `\`:
9527e65a38/packages/snapshot/src/port/inlineSnapshot.ts (L78-L94)
2023-12-03 16:56:18 +08:00
Wenzhe Wang
2f90ca1b54
fix(tasks): find the right output to diff (#1596) 2023-12-03 15:29:13 +08:00
Wenzhe Wang
9f38072002
feat(tasks): add visualize_end_of_line (#1593) 2023-11-30 23:42:57 +08:00
Dunqing
39188d00e1
feat(prettier): support arrowParens option (#1592) 2023-11-30 17:41:34 +08:00
Boshen
e6681a8683
feat(prettier_conformance): ignore more stage3 features (#1584) 2023-11-29 19:51:41 +08:00
Boshen
e6f85a9a62
chore(prettier_conformance): remove stage3 export-default-from (#1580) 2023-11-29 19:03:26 +08:00
Dunqing
63b9d2cf81
feat(prettier/conformance): print options (#1579) 2023-11-29 18:37:38 +08:00
Dunqing
f19032e102
feat(prettier): support quoteProps option in PropertyKey (#1578) 2023-11-29 18:32:30 +08:00
Boshen
f7cb7838e5
chore(prettier_conformance): ignore range / cursor tests; ignore module-blocks 2023-11-28 23:30:32 +08:00
Boshen
6ea1bf2f18
Revert "chore(prettier_conformance): temporary disable code coverage"
This reverts commit e1266c69f9.
2023-11-28 17:34:59 +08:00
Boshen
32b19561a8
chore(prettier_conformance): ignore bind-expressions (#1535) 2023-11-24 20:26:27 +08:00
Dunqing
aa8656df0f
feat(task/prettier-confromance): escape template literal (#1493) 2023-11-22 15:30:59 +08:00
Dunqing
f06f0f2078
feat(task/prettier-confromance): ignore tests with non-standard syntax (#1492) 2023-11-22 11:01:26 +08:00
Boshen
064353c97e
feat(prettier): turn off preserve_parens and start working on need-parens (#1487) 2023-11-21 16:26:56 +00:00
Dunqing
51a78e2223
feat(prettier): support print inner comment in CallExpression (#1475) 2023-11-21 12:28:46 +08:00
Boshen
27dc1ed1b2
chore(prettier_conformance): ignore more non-es6 syntax (#1437) 2023-11-19 23:15:24 +08:00
Boshen
95f1b3beba
chore(prettier_conformance): ignore stage3 and multiparser tests (#1432) 2023-11-19 18:47:39 +08:00
Wenzhe Wang
3c567d6549
task(prettier): add diff view (#1428) 2023-11-19 17:13:25 +08:00
Boshen
d0a70d0626
feat(prettier): print class method and read tab width (#1413) 2023-11-18 22:42:53 +08:00
Boshen
24c2580435
chore(prettier_conformance): remove stage 3 features 2023-11-18 16:13:12 +08:00
Boshen
1dcd29a91b
feat(prettier): support endOfLine option (#1377) 2023-11-17 20:50:17 +08:00
Dunqing
badf6f51cf
feat(task/prettier-conformance): splitting test cases by file (#1373) 2023-11-17 20:14:00 +08:00
Dunqing
9b94226531
feat(prettier): support single_quote option (#1366) 2023-11-17 14:07:29 +08:00
Dunqing
a099d06866
fix(tasks/prettier-conformance): incorrect snapshot (#1352)
fix(tasks/prettier-conformance): incorrect snapshot

fix: lint
2023-11-16 20:43:32 +08:00
Dunqing
638bd1ce23
feat(tasks/prettier-conformance): allow specifying filter as specific files (#1343)
This is useful in directories with a large number of files, so that we only need to focus on the file we are debugging.
2023-11-16 15:56:47 +08:00
Dunqing
ba0e4d1a6a
feat(tasks/prettier-conformance): parse the specs and pass the correct options to prettier (#1327)
### This PR did the following things.

1. Parse specs
2. Collect `run_spec's` arguments
3. Pass the correct `PrettierOptions` to the `Prettier`
4. Printing snapshots correctly
2023-11-15 13:30:44 +08:00
Boshen
5f316626f6
feat(prettier): add the basics of comment printing (#1313) 2023-11-14 12:32:03 +00:00
Boshen
e1266c69f9
chore(prettier_conformance): temporary disable code coverage 2023-11-14 15:13:25 +08:00
Dunqing
f13e9aa69d
feat(task/prettier-conformance): incorrect compatibility percentage (#1292) 2023-11-14 12:22:27 +08:00
Cameron
561c73d88c
feat(printer) Basic Printer options (#1278) 2023-11-14 09:37:18 +08:00
Boshen
5c1637b786
feat(prettier): add some basic formatting functions (#1266) 2023-11-13 13:27:53 +00:00
Boshen
4a6f54cc1a
feat(prettier_conformance): add prettier test runner (#1262) 2023-11-13 20:14:35 +08:00