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
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
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
Boshen
9780621925
chore: run fmt
2023-11-16 13:36:42 +08:00
Boshen
73d6d40778
rust: do not compile libs and bins that do not have tests ( #1342 )
2023-11-16 13:35:24 +08:00
Boshen
e8b6e32b7c
ci: disable prettier tests
2023-11-16 12:41:29 +08:00
Dunqing
b443a0798f
fix(prettier): remove unnecessary group and ident in BinaryishExpression ( #1337 )
2023-11-16 11:16:26 +08:00
Boshen
039b53f6e7
ci: stop benchmark marking prettier and resolver until they are fixed
2023-11-16 10:57:50 +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
Boshen
5f316626f6
feat(prettier): add the basics of comment printing ( #1313 )
2023-11-14 12:32:03 +00:00
Boshen
3dee2c7178
feat(benchmark): add prettier ( #1302 )
2023-11-14 17:47:17 +08:00
magic-akari
445352991f
fix(parser): Fix type import ( #1291 )
...
- fix : #1288
- fix : #1289
2023-11-14 15:17:58 +08:00
Boshen
e1266c69f9
chore(prettier_conformance): temporary disable code coverage
2023-11-14 15:13:25 +08:00
Shannon Rothe
d5e46ef929
fix(tasks/prettier_conformance): fix incorrect casing in README ( #1295 )
2023-11-14 13:41:48 +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
Cameron
561c73d88c
feat(printer) Basic Printer options ( #1278 )
2023-11-14 09:37:18 +08:00
Dunqing
0297cf7cc7
fix(prettier): remove redundant newline and semicolons from the Program ( #1284 )
2023-11-14 09:36:37 +08:00
Dunqing
7f01d48df3
feat(transformer/react-jsx): set automatic to the default value for runtime ( #1270 )
...
Align babel8
2023-11-14 09:26:21 +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
Dunqing
472707c04e
feat(task/transformer-conformance): skip babel 8 unsupported test cases ( #1258 )
...
Prior to babel8, object merging would use `babelHelper.extend`, which
caused most tests to fail
2023-11-13 11:05:36 +08:00
magic-akari
9c0aafcd1c
fix(parser): Disallow ReservedWord in NamedExports ( #1230 )
...
- fix : #1222
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2023-11-12 10:52:02 +00:00
Dunqing
1eef241788
feat(transformer/react-jsx): support for throwing SpreadChildrenAreNotSupported error ( #1234 )
2023-11-12 18:37:19 +08:00
Dunqing
39e608734f
feat(transformer/react-jsx): support for throwing ImportSourceCannotBeSet error ( #1224 )
2023-11-12 11:17:23 +08:00
Dunqing
b7e8feb7c1
feat(transformer/react-jsx): support throw valueless-key error ( #1221 )
2023-11-11 20:10:07 +08:00
Dunqing
a22ced78f1
feat(transformer/react-jsx): implement throwIfNamespace option ( #1220 )
2023-11-11 13:31:45 +08:00
Boshen
50d2d88a36
chore(transform_conformance): update snapshot
2023-11-11 10:57:09 +08:00
Dunqing
48242367bb
fix(transformer/react-jsx): missing import jsxs in nested fragment ( #1218 )
2023-11-11 02:45:42 +00:00
Dunqing
a0f40cb058
fix(transformer/react-jsx): missing default options when plugin without config ( #1219 )
2023-11-11 10:38:28 +08:00
magic-akari
8afb81aa34
fix(parser): ASI of async class member ( #1214 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-11-10 16:21:51 +00:00
Boshen
a60b7e5856
feat(tasks): add misc tests to codegen ( #1215 )
2023-11-10 16:13:31 +00:00
Boshen
fdd8018c8e
chore(transform_conformance): update snapshot
2023-11-10 18:28:48 +08:00
Dunqing
d9b450414b
feat(transformer/react-jsx): when the source type is a script, use require to import the react ( #1207 )
2023-11-10 18:17:31 +08:00
Dunqing
3e15fa624b
fix(transformer/react-jsx): undetectable comments in multiline comments ( #1211 )
2023-11-10 08:20:55 +00:00
dependabot[bot]
57d24e569b
chore(deps): bump the dependencies group with 6 updates ( #1210 )
2023-11-10 15:09:38 +08:00
Boshen
eca98cf2ed
s/web-infra-dev/oxc-project
2023-11-10 14:30:18 +08:00
Dunqing
8c624abf9c
feat(transformer/react-jsx): throw the pragma and pragmaFrag cannot be set when runtime is automatic error ( #1196 )
...
close : #1194
Here's a rough implementation of my idea of throwing an error.
2023-11-10 12:50:54 +08:00
Dunqing
b65094b995
fix(transformer/react-jsx): no need to wrap the Array when there is only one correct child element ( #1205 )
2023-11-10 10:52:37 +08:00
Dunqing
ae71b36f9b
fix(tasks): avoid overriding existing babel options ( #1193 )
2023-11-08 17:04:59 +08:00
Dunqing
d8864c15b0
fix(tasks/transform_conformance): only the filtered test cases should be included when passing a filter ( #1197 )
2023-11-08 17:03:01 +08:00
Dunqing
7d85492a03
feat(transformer/react-jsx): support the sourceType is a script ( #1192 )
2023-11-08 15:15:00 +08:00
Dunqing
28c0b85646
feat(transformer/react-jsx): support @jsxFrag annotation ( #1189 )
2023-11-08 11:35:40 +08:00
Dunqing
633c469d2d
feat(transformer/react-jsx): support @jsx annotation ( #1182 )
2023-11-07 20:30:26 +08:00
Dunqing
3cb7c0b199
feat(transformer/react-jsx): support pragmaFrag option ( #1181 )
2023-11-07 10:34:15 +00:00