Boshen
f8b9679d74
feat(prettier): print module specifiers ( #1383 )
2023-11-17 22:03:28 +08:00
Dunqing
7b85843981
feat(task/prettier-conformance): add spacing before block in IfStatement ( #1374 )
2023-11-17 20:19:26 +08:00
Dunqing
badf6f51cf
feat(task/prettier-conformance): splitting test cases by file ( #1373 )
2023-11-17 20:14:00 +08:00
Dunqing
a8e4c3333c
feat(prettier): wrap a group in BinaryExpression ( #1370 )
2023-11-17 19:00:29 +08:00
Dunqing
6ac6d7158f
fix(prettier): incorrect dot operator in MetaProperty ( #1369 )
...
fix(prettier): incorrect dot operator in MetaProperty
test: update snap
2023-11-17 17:56:57 +08:00
Boshen
5a6c83b0cc
feat(prettier): print NewExpression correctly ( #1368 )
2023-11-17 16:38:19 +08:00
Boshen
bfdb6eac86
feat(prettier): print statements with newlines ( #1367 )
2023-11-17 15:13:51 +08:00
Dunqing
1116afa7bc
fix(prettier): remove extra empty lines inside the function body ( #1365 )
...
I'm not sure that's the right approach. But we can handle it this way for now
2023-11-17 14:03:26 +08:00
Boshen
9754ef0d95
feat(pretter): start formatting ModuleDeclaration and ArrowExpression ( #1354 )
2023-11-16 21:38:21 +08:00
Dunqing
40be405a57
feat(prettier): support for printing objects with longer properties ( #1353 )
2023-11-16 20:48:27 +08:00
Boshen
bc302f4f8b
feat(prettier): print big int with lowercase ( #1351 )
2023-11-16 19:04:12 +08:00
Dunqing
95268c9e0d
feat(prettier): implement format function for ObjectExpression ( #1344 )
2023-11-16 16:01:36 +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
b443a0798f
fix(prettier): remove unnecessary group and ident in BinaryishExpression ( #1337 )
2023-11-16 11:16:26 +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
Cameron
e5a34366af
fix(prettier) Fix printing of array expressions ( #1325 )
2023-11-15 10:18:32 +08:00
Dunqing
96753c2efd
feat(prettier): add HardLine if the next line of the VariableDeclartion is a empty line ( #1318 )
2023-11-14 23:04:27 +08:00
Dunqing
f13e9aa69d
feat(task/prettier-conformance): incorrect compatibility percentage ( #1292 )
2023-11-14 12:22:27 +08:00
Dunqing
c15b76b92d
feat(prettier): add HardLine and Semicolon in ExpressionStatement ( #1285 )
2023-11-14 12:14:45 +08:00
Dunqing
0297cf7cc7
fix(prettier): remove redundant newline and semicolons from the Program ( #1284 )
2023-11-14 09:36:37 +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