Commit graph

525 commits

Author SHA1 Message Date
u9g
4d1863a954
Implement GetSpan for ImportDeclarationSpecifier (#483) 2023-06-27 17:33:08 +08:00
u9g
defba1567e
add comments to ImportDeclarationSpecifier (#484) 2023-06-27 12:19:43 +08:00
阿良仔
1182985bb0
feat(minifier): implement try_fold_shift (#478)
* feat: implement `try_fold_shift`

* update minsize
2023-06-27 04:44:23 +08:00
u9g
f12166c92f
Add examples of ModuleDeclaration (#482) 2023-06-27 04:42:36 +08:00
Wenzhe Wang
cb94937ba6
feat(minifier): fold string string comparison (#471) 2023-06-26 22:37:50 +08:00
Boshen
662229ab69
refactor(semantic): use std::cell:OnceCell instead of the crate version 2023-06-26 21:48:55 +08:00
Boshen
bee3a7374c
chore(linter): change array_callback_return to pedantic
closes #324
2023-06-26 18:45:11 +08:00
Boshen
e1f815fd8e
feat(linter): print plugin names for --rules 2023-06-25 22:47:58 +08:00
Boshen
4a41c1066c
refactor(linter): move eslint rules to their own directory 2023-06-25 22:47:57 +08:00
阿良仔
26c3ece37c
feat: handle UnaryOpsWithBigInt (#475) 2023-06-25 22:37:36 +08:00
u9g
218683fa95
Document TemplateElementValue better (#473)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-24 22:08:53 +08:00
Yagiz Nizipli
3656802fd4
feat: add eslint no-setter-return rule (#434)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-24 22:08:41 +08:00
Maneren
b31819d7a1
feat(cli): Basic recursive implementation of module based linting (#468) 2023-06-23 08:26:05 +08:00
Wenzhe Wang
b8f5e3ad92
feat(minifier): try reduce void (#457) 2023-06-23 00:10:46 +08:00
u9g
7c4e1d401a
feat(playground): Add IR view to playground (#467) 2023-06-21 22:35:55 +08:00
Boshen
42b97fc270 feat(linter): add suspicious and pedantic categories 2023-06-21 13:58:26 +08:00
Boshen
66d1c7b1de feat(linter): implement number_arg_out_of_range from deepscan 2023-06-21 13:58:26 +08:00
Boshen
0873733ae7 feat(linter): implement bad_remove_event_listener from deepscan 2023-06-21 13:58:26 +08:00
Boshen
1bb957bcf8 feat(linter): implement bad_min_max_func from deepscan 2023-06-21 13:58:26 +08:00
Boshen
4926130e5f refactor(linter): remove unwrap from bad_comparison_sequence 2023-06-21 13:58:26 +08:00
Boshen
45f3e4ee1a feat(linter): implement missing_throw from deepscan 2023-06-21 13:58:26 +08:00
Ben
67a86063e9
Update to latest Ezno checker and more (#463) 2023-06-21 08:09:41 +08:00
Wenzhe Wang
a5ccc7da30
feat(minifier): port undefined_comparison1 (#458) 2023-06-20 22:25:28 +08:00
Boshen
d7f9ca13bc
feat(ast_lower): mark assignment target identifiers as ReferenceFlag::Write
closes #465
2023-06-20 22:12:16 +08:00
Boshen
925cee20c1
feat(parser): parse TypeScript this function parameter (#464) 2023-06-20 21:56:28 +08:00
Boshen
993c171547
chore(ast): document ArrowExpression.expression 2023-06-20 21:54:13 +08:00
Boshen
19b839efe9
perf(semantic): use IndexVec instead of indextree for ast nodes (#462) 2023-06-20 15:21:58 +08:00
Boshen
1b39ce0745
refactor(linter): refactor valid_typeof to use without indextree sibling api 2023-06-19 20:46:53 +08:00
Boshen
527b94fba6
refactor(hir): use Cell for SymbolId instead of RefCell 2023-06-19 20:23:46 +08:00
Boshen
d30735677b
refactor(semantic): merge semantic2 crate into semantic crate (#460) 2023-06-19 20:20:59 +08:00
Maneren
e591c62200
refactor(linter): replace phf_map with phf_set (#456) 2023-06-18 12:23:27 +08:00
Boshen
c4008d8014
perf(manger): use RefCell<SymbolId> instead of roundtrip with BTreeMap (#455) 2023-06-16 21:15:30 +08:00
u9g
c5a6b55bcd
chore(linter): Fix spelling mistake (#450)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-16 13:20:42 +08:00
Maneren
de9d4de276
feat(linter): Implement eslint(getter-return) (#449) 2023-06-16 10:09:33 +08:00
Wenzhe Wang
5d10f96051
feat(minifier): try fold unary expression (#430) 2023-06-16 00:08:14 +08:00
u9g
db624da84d
Reimplement more of the closure var rename step (#447)
Co-authored-by: Boshen <boshenc@gmail.com>

closes #442
2023-06-15 23:37:04 +08:00
u9g
631062514c
Fix confusing and/or incorrect condition in linter (#446) 2023-06-15 14:09:05 +08:00
u9g
ffa2895e5a
chore(minifier) Explain use of base 54/64 in mangler (#445)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-15 10:58:40 +08:00
Boshen
ab25bdebe4
deps: bump deps 2023-06-14 22:37:27 +08:00
Boshen
a79480b078
feat(minifier): separate mangler pass (#439) 2023-06-14 10:46:13 +08:00
Boshen
166af12b9d
fix(parser): compile in wasm 2023-06-13 17:42:40 +08:00
Carter Snook
c0726e444f
feat(lexer): use linear lexing on WASM (#436)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-13 15:18:02 +08:00
Boshen
57a2706c21
refactor(semantic): remove the unused mangler from oxc_semantic 2023-06-12 21:35:16 +08:00
Boshen
de403a297d
feat(hir): add enter_scope / leave_scope callbacks 2023-06-12 21:24:11 +08:00
Boshen
0dc6e025a1
refactor(semantic): move ScopeId and ScopeFlags to oxc_syntax 2023-06-12 21:10:38 +08:00
Boshen
dcb38f2277
refactor(semantic): move SymbolId and SymbolFlags to oxc_syntax 2023-06-12 20:55:16 +08:00
Carter Snook
985b8f21d9
feat: support hashbang interpreter comments (#431) 2023-06-11 23:55:58 +08:00
Boshen
12ae16a7f2
feat(hir): add visitor 2023-06-11 22:28:54 +08:00
Boshen
5c91fd54e3
feat(minifier): print [-In] Context (#428) 2023-06-11 16:44:48 +08:00
Carter Snook
9df1545602
feat(linter): improve eslint(no-eval) compat (#419) 2023-06-10 11:39:54 +08:00