Commit graph

1991 commits

Author SHA1 Message Date
Boshen
6ebb42dbd7
fix(ast): remove debug_assertions from debug_name 2023-11-24 10:24:15 +08:00
IWANABETHATGUY
f4616815ea
chore: remove nextest config (#1522)
1. remove nextext config since we don't use it anymore.
2023-11-24 10:12:50 +08:00
Boshen
1dc365c204
ci: cargo test run --no-run --workspace -> cargo test --quiet --no-run
Doesn't seem to have a difference with `--workspace`
2023-11-23 21:55:41 +08:00
Boshen
78c6fcd1d0
feat(prettier): improve format of ExportDefaultDeclaration (#1520) 2023-11-23 21:52:56 +08:00
Wenzhe Wang
f4c89ce5a6
feat(prettier): implement DocBuidler trait for Printer and Prettier (#1519) 2023-11-23 21:48:13 +08:00
Dunqing
3758e6f6a5
feat(prettier): handle the logic inside the parentheses in BinaryExpression and LogicalExpression (#1516) 2023-11-23 18:32:25 +08:00
Shannon Rothe
0115314cf4
feat(ast/semantic): parse jsdoc on PropertyDefinition (#1517)
This should be enough to handle jsdoc comments on class
properties/fields.

See #1506
2023-11-23 18:30:14 +08:00
Dunqing
490a589ded
feat(prettier): print binarylish correctly in SwitchStatement (#1515) 2023-11-23 18:29:00 +08:00
Ken-HH24
ebf5cf8c82
feat(linter): heading-has-content for eslint-plugin-jsx-a11y (#1501)
Try to implement `heading-has-content` for #1141 .
2023-11-23 09:28:22 +00:00
Dunqing
635008a408
feat(prettier): support print empty switch (#1514) 2023-11-23 16:19:42 +08:00
Boshen
ef59f544b4
feat(prettier): handle binary in in for statement init (#1512) 2023-11-23 12:50:30 +08:00
Cameron
7930f90112
feat(linter): eslint-plugin-unicorn prefer-set-size (correctness) (#1508) 2023-11-23 11:03:25 +08:00
Cameron
0dd5ec1bcf
feat(linter): eslint-plugin-unicorn prefer-native-coercion-functions (pedantic) (#1507) 2023-11-23 10:59:19 +08:00
Dunqing
bec365e1b6
feat(prettier): support propagate breaks (#1511)
regression tests are the expected result
2023-11-23 10:44:41 +08:00
u9g
cac7c2eba8
chore(ast): document connection between TemplateLiteral's quasis & expression arrays (#1509) 2023-11-23 10:43:15 +08:00
Boshen
2d5e0d5d07
feat(prettier): handle parens for member expression inside new expression (#1505) 2023-11-22 16:22:49 +00:00
ubugeeei
8e923f1372
Initialize JS Regex crates and def AST. (#1500)
ref: https://github.com/oxc-project/oxc/issues/1164

I have initialized a crate for handling JavaScript Regexp and defined
the AST.
I implemented the AST while referring to
[eslint-community/regexpp](2e8f1af992/src/ast.ts).
2023-11-23 00:22:17 +08:00
Boshen
6410502cc6
refactor(prettier): rename file need_parens -> needs_parens (#1504) 2023-11-23 00:04:00 +08:00
Boshen
d3b7629b46
feat(prettier): handle parens for logical assignment expression (#1503) 2023-11-22 23:58:43 +08:00
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