Commit graph

998 commits

Author SHA1 Message Date
Boshen
801d78a3c6
refactor(minifier): make the minifier api only accept an ast (#990) 2023-10-14 00:51:29 +08:00
Boshen
f32bf27106
fix(codegen): fix some typescript codegen problems (#989) 2023-10-13 16:23:48 +08:00
Boshen
e0ca09b1c9
feat(codegen): implement the basics of non-minifying codegen (#987) 2023-10-13 13:34:21 +08:00
Boshen
efad0fce2d
deps(rust): bump deps 2023-10-12 21:03:17 +08:00
Cameron
3af35b8048
feat(linter) eslint-unicorn catch error name (#984) 2023-10-12 11:06:46 +01:00
Boshen
ce79bc12ab
feat(transform_conformance): move Formatter to codegen (#986) 2023-10-12 15:13:14 +08:00
Boshen
809f050a5f
feat(codegen): move minifying printer to codegen crate (#985) 2023-10-12 14:56:30 +08:00
Boshen
f28d96c378
feat(codegen): initialize the codegen crate and struct (#983) 2023-10-12 10:41:44 +08:00
Boshen
bd99c7f174
chore(cli): remove cmd snapshot and building oxlint binary to speed up ci 2023-10-11 20:38:59 +08:00
Boshen
8c12dff8a3
perf: speed tasks run by using a global allocator 2023-10-11 20:30:30 +08:00
magic-akari
dc08c949a2
feat(transformer): RegexpFlags (#977)
Co-authored-by: Boshen <boshenc@gmail.com>
2023-10-11 07:15:19 -05:00
Boshen
eaa0c58e24
feat(linter): eslint-plugin-unicorn(filename-case) (#978) 2023-10-11 15:23:17 +08:00
Boshen
903854dac0
refactor(ast): fix the lifetime annotations around Vist and VisitMut (#973) 2023-10-10 17:05:48 +08:00
Boshen
d973051ec3
chore(resolver): remove accidentally committed temp files 2023-10-10 15:49:55 +08:00
Boshen
ef8aaa7bf1
feat(minifier): re-enable mangler (#972) 2023-10-10 14:32:58 +08:00
Boshen
d529a406e5
Release oxc_resolver v0.3.1 2023-10-10 10:39:42 +08:00
cin
205f66bfbf
feat(linter): add jest/no-confusing-set-timeout (#938) 2023-10-09 07:37:40 -05:00
Wenzhe Wang
09df8e609a
feat(transform): sticky-regex (#968) 2023-10-09 19:12:14 +08:00
Boshen
61bc142d95
fix(resolver): resolve tsconfig extend that are extensionless (#971) 2023-10-09 16:10:03 +08:00
Boshen
14e1dacd0a
feat(minifier): reenable minifier tests (#969) 2023-10-09 11:25:29 +08:00
Boshen
0fcad27515 use enter / leave scope from ast visit in SemanticBuilder 2023-10-09 09:59:14 +08:00
Boshen
dd875402e7 swap enter leave scope order with enter / leave node 2023-10-09 09:59:14 +08:00
Boshen
f0029d5310 feat(minifier): reenable mangler
closes #952
closes #955
2023-10-09 09:59:14 +08:00
Don Isaac
6c1388df55 feat(ast): enter/leave scopes in Visit 2023-10-09 09:59:14 +08:00
Wenzhe Wang
90828c4d39
feat(linter): add eslint(jest/valid-title) rule (#966) 2023-10-09 07:37:31 +08:00
Boshen
09386013d2
Release oxc_resolver v0.3.0 2023-10-08 19:20:24 +08:00
Boshen
5dbccaa711
feat(resolver): configurable tsconfig project references (#965)
closes #942
2023-10-08 19:18:10 +08:00
Boshen
7e84369cad
refactor(resolver): move tests folder to fixtures (#964) 2023-10-08 13:29:02 +08:00
Boshen
55b2f031df
feat(minifier): partially re-enable minifier (#963)
closes #949
closes #950
closes #951

All minifier tests are disable from this PR.

We are going to fix the compilation errors first, then the behavioral
errors.
2023-10-08 11:06:42 +08:00
magic-akari
9ad2634091
feat(transformer): Class Static Block (#962) 2023-10-08 08:16:40 +08:00
Boshen
77dd0f1395
chore(cli): disable doc tests 2023-10-07 21:18:26 +08:00
Boshen
a710e73cd9
fix(linter): fix clippy 2023-10-07 17:19:44 +08:00
Wenzhe Wang
7a62d4bdbc
feat(linter): add jest/no-identical-title rule (#957)
https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-identical-title.md
2023-10-07 17:11:53 +08:00
magic-akari
21066a9ad7
feat(transformer): Shorthand Properties (#960) 2023-10-07 17:02:45 +08:00
Boshen
817f8c295e
ci: turn off doc tests because they are slow to compile and run (#961) 2023-10-07 17:01:23 +08:00
Boshen
5045853b9a
Rust 1.73.0 (#958) 2023-10-06 17:56:14 +13:00
Wenzhe Wang
812baeb217
feat(linter): add eslint(jest/valid-expect) rule (#941) 2023-10-04 22:06:12 -05:00
Cameron
5b1e1e5408
feat(parser): TypeScript 5.2 (#811)
- adds support for [Using
Declarations](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#using-declarations-and-explicit-resource-management)

Closes #786
2023-10-05 12:52:14 +13:00
Cameron
69f2364e2a
feat(linter) Add ban_types typescript eslint rule (#953)
Part of #503 -> `@typescript-eslint/ban-types`
2023-10-04 10:52:54 +13:00
Don Isaac
b4b39b8aa6
test(semantic): add scoping test cases (#954)
Add test cases to `oxc_semantic` that check scope flag behavior.

Also contains these tweaks:
- fix: allow disabling `with_module` on `SourceType`
- refactor: move `SymbolTester` to a separate file
- chore: add `Expect` trait & implement it on `SymbolTester`
2023-10-03 18:16:01 +13:00
Cameron
d5b70c3b2c
fix(cli): fix panic when no paths are provided (#944) 2023-09-30 21:05:55 +13:00
Boshen
85b113d751
fix(linter): improve error span for no-thenable 2023-09-30 00:08:04 +13:00
Boshen
74160ac3d7
deps(rust): bump deps 2023-09-29 23:57:43 +13:00
Boshen
982ae9b930
feat(linter): improve help message of no-thenable 2023-09-29 23:51:41 +13:00
Boshen
39e4efb2c0
chore(linter): move no-redeclare to nursery 2023-09-29 23:46:52 +13:00
Boshen
384c3fc00f
fix(resolver): log error as debug so it does not print the error by default 2023-09-29 23:41:44 +13:00
Boshen
fbbc1fe6bd
chore(wasm,playground): remove hir 2023-09-29 22:39:31 +13:00
Boshen
2440ec712f
fix(no_control_regex) fix panic on multi-byte regex chars
authored by @camc314
closes #934
closes #935
2023-09-29 22:36:20 +13:00
IWANABETHATGUY
266253c142
fix: ts parsing error (#940)
Fixed https://github.com/web-infra-dev/oxc/issues/932
2023-09-29 22:02:56 +13:00
IWANABETHATGUY
ea90128b9f
chore(playground): 🐛 hide hir and minify since they are not available (#939)
1. hide hir and minify since they are not available
2. These two buttons would confuse user since they don't have any effect
for now.
2023-09-29 21:57:47 +13:00