Commit graph

1972 commits

Author SHA1 Message Date
Boshen
93c461a5b9
feat(prettier): format number in member expression (#1499) 2023-11-22 21:52:06 +08:00
Boshen
272f6d292d
fix(wasm): fix prettier crashing 2023-11-22 21:27:47 +08:00
Boshen
7af6d129cb
fix(wasm): turn off Parser::preserve_parens for the playground (#1498) 2023-11-22 19:45:26 +08:00
Boshen
567c6ed757
feat(prettier): print directives (#1497) 2023-11-22 19:39:25 +08:00
Boshen
cf803d379a
feat(prettier): add parens to ExportDefaultDeclaration (#1494) 2023-11-22 19:34:37 +08:00
JonaAnders
08164b0e18
refactor(parser) Updated comments mentioning the ecma specification section 12.x (#1496)
The ECMA specification seems to added the "Tokens" section to the
specification as 12.6. This pushed all the other sections down,
resulting in e.g. former 12.6 now being 12.7. Comments in the parser
mention this part of the specification. All the mentions of section
12.6+ therefor are outdated now. This pull request tries to fix that by
updating all the comments.
2023-11-22 19:29:04 +08:00
Dunqing
aa8656df0f
feat(task/prettier-confromance): escape template literal (#1493) 2023-11-22 15:30:59 +08:00
msdlisper
c8cc814243
feat(linter): eslint-plugin-jsx-a11y anchor_is_valid (correctness) (#1477) 2023-11-22 15:23:43 +08:00
Boshen
f6a5d0e276
Release oxlint and vscode extension v0.0.18 2023-11-22 14:40:00 +08:00
Boshen
717d472d09
chore(linter): move some rules to pedantic
* prefer_dom_node_append
* prefer_string_slice
* no_hex_escape
2023-11-22 14:26:54 +08:00
IWANABETHATGUY
b6393f052f
feat(transformer/react): handle babel 8 breaking removed-options (#1489)
1. removed options react jsx
2. Passed 4 test cases.
2023-11-22 11:01:40 +08:00
Dunqing
f06f0f2078
feat(task/prettier-confromance): ignore tests with non-standard syntax (#1492) 2023-11-22 11:01:26 +08:00
Dunqing
79c67d15c0
perf(prettier): check commandjs or amd in CallExpression only (#1491) 2023-11-22 10:57:31 +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
IWANABETHATGUY
f66e4d8ac3
feat(transformer): add transform property-literal plugin (#1458)
1. Add `transform-property-literal-plugin`
2. Passing 2 testcases.

---------

Co-authored-by: Wenzhe Wang <mysteryven@gmail.com>
2023-11-21 23:07:43 +08:00
Shannon Rothe
8934ddb590
feat(prettier): basic TaggedTemplateExpression printing (#1486) 2023-11-21 22:15:29 +08:00
IWANABETHATGUY
4fb4a85ab1
chore(transformer): 🤖 add diff section when conformance failed in filter mode (#1488) 2023-11-21 21:47:58 +08:00
Boshen
c934d93713
chore(justfile): update just update for syncing submodules 2023-11-21 18:57:32 +08:00
Boshen
f41b3f0968
Release oxc_resolver v0.5.4 2023-11-21 18:57:27 +08:00
Dunqing
347b5721c0
feat(prettier): print multiple variable declarator correctly in VariableDeclaration (#1485) 2023-11-21 18:54:26 +08:00
Dunqing
f1874c7955
feat(prettier): should be newline if break in AssigmentExpression (#1484) 2023-11-21 18:50:26 +08:00
Shannon Rothe
332ed81e1e
chore(linter): uncomment test case for no-func-assign rule (#1483) 2023-11-21 18:22:09 +08:00
Boshen
abde1e06b0
refactor(resolver): do not search for package.json inside non-existing directories (#1482) 2023-11-21 17:28:27 +08:00
Dunqing
c762a85fcc
feat(prettier): print inner comment in PropertyKey (#1479) 2023-11-21 17:26:36 +08:00
Boshen
4dbe17c33a
fix(resolver): make sure package.json path is inside the resolved path (#1481) 2023-11-21 17:24:06 +08:00
Dunqing
79c2bac6b1
feat(prettier): support longer source in ImportExpression (#1478) 2023-11-21 17:21:23 +08:00
Boshen
7b909de28e
perf(resolver): do not search for package.json inside non-existing directories (#1480) 2023-11-21 16:57:44 +08:00
Dunqing
51a78e2223
feat(prettier): support print inner comment in CallExpression (#1475) 2023-11-21 12:28:46 +08:00
Boshen
07b010912a
feat(parser): add preserve_parens option (default: true) (#1474)
closes #1461
2023-11-21 11:16:30 +08:00
Cameron
0f7d6a5800
feat(linter) eslint plugin unicorn: prefer dom node remove (#1472) 2023-11-21 10:40:40 +08:00
Cameron
1c28feec52
feat(linter) eslint plugin unicorn: prefer includes (#1471) 2023-11-21 10:35:26 +08:00
Cameron
807ede7996
refactor(linter) Use is_method_call in no_console_spaces (#1470) 2023-11-21 10:30:31 +08:00
Cameron
32afe1afd0
refactor(linter) Use is_method_call in more places (#1469) 2023-11-21 10:25:25 +08:00
Cameron
ce20a02692
feat(linter) eslint plugin unicorn: prefer array some (#1467) 2023-11-21 10:21:25 +08:00
Cameron
ba1bb03e91
feat(linter) eslint plugin unicorn: prefer math trunc (#1466) 2023-11-21 10:16:26 +08:00
Cameron
067cec7d82
feat(linter) eslint plugin unicorn: prefer event target (#1465) 2023-11-21 10:11:27 +08:00
Shannon Rothe
0b6b0b4854
feat(cli): add --deny-warnings flag (#1452)
See #1403

Terminates linting with an exit code of 1 if the `--deny-warnings` flag
is provided _and_ there is 1 or more warnings produced from the linting.
2023-11-21 10:08:10 +08:00
Cameron
10be84a07a
feat(linter) eslint plugin unicorn: no zero fractions (#1464) 2023-11-21 10:06:28 +08:00
Dunqing
d64ed0a953
feat(prettier): support format commonjs and amd call (#1473) 2023-11-21 10:05:39 +08:00
Cameron
8b0032d4af
feat(linter): eslint plugin unicorn: no useless switch case (#1463) 2023-11-21 10:02:32 +08:00
magic-akari
f81f15ff71
fix(prettier): Private Field Expression (#1459) 2023-11-20 23:32:16 +08:00
Wenzhe Wang
5aca375a94
feat(prettier): add should_break for array (#1454) 2023-11-20 22:58:52 +08:00
magic-akari
4c213a1c14
fix(prettier): async arrow expression (#1457) 2023-11-20 22:58:37 +08:00
magic-akari
59b8fdfaa5
fix(prettier): class extends clause (#1456) 2023-11-20 21:45:28 +08:00
magic-akari
18d8be0353
fix(prettier): class without name (#1455) 2023-11-20 21:41:14 +08:00
magic-akari
eecf8d3dc6
fix(prettier): print_method (#1453) 2023-11-20 12:41:36 +00:00
Shannon Rothe
712505bfce
chore(prettier): fix typo in function name (#1451)
Small typo on the function name cloned from the Prettier repo
2023-11-20 18:51:45 +08:00
Boshen
4af5f29774
ci: disable native build 2023-11-20 17:45:51 +08:00
Boshen
507958d5bf
Revert "chore(deps): bump the dependencies group with 2 updates (#1446)"
This reverts commit b052f022aa.
2023-11-20 17:24:25 +08:00
Boshen
0bf3dbfde4
feat(prettier): add infra for need_parens (#1450) 2023-11-20 17:18:39 +08:00