Commit graph

869 commits

Author SHA1 Message Date
Boshen
3b7e1fde89
chore(cli): run parser with allow_return_outside_function
because there are a lot of scripts that have top level return functions
2023-06-28 18:40:47 +08:00
Boshen
715698f515
fix(linter): s/no_function_assign/no_func_assign per eslint 2023-06-28 18:40:46 +08:00
Boshen
ab5ec99f65
fix(linter): fix error message when failed to read a file 2023-06-28 18:40:46 +08:00
Boshen
072abcc2a6
fix(linter): fix no_empty_pattern broken on rest elements 2023-06-28 18:40:45 +08:00
Boshen
13207193bf
chore(linter): move no_self_compare from pedantic category
The code is not wrong if it is intended to check for NaNs,
which is the majority of the case.
2023-06-28 18:40:44 +08:00
阿良仔
be2200dc7b
feat(linter): implement no-case-declarations (#491) 2023-06-28 16:59:21 +08:00
Wenzhe Wang
a32320646d
feat(minfier): try fold and or operator (#472) 2023-06-28 14:58:55 +08:00
u9g
a2d90d94d6
Add comments to BindingPatternKind (#489) 2023-06-28 14:47:22 +08:00
u9g
ea3bab96c0
Implement GetSpan for AssignmentTargetPattern (#488) 2023-06-28 10:46:25 +08:00
u9g
780e17707b
Implement GetSpan for JSXChild (#487) 2023-06-28 00:26:47 +08:00
Boshen
0a76483907
chore: update README with oxlint 2023-06-28 00:18:38 +08:00
Boshen
64d6103d25
fix(cli): change "Found X errors" to "Found X warnings" 2023-06-27 23:48:26 +08:00
Boshen
a592e0d7fb
Release oxlint v0.0.3 2023-06-27 23:29:25 +08:00
Boshen
03b69bbd4b
fix: fix wrong npm/oxlint binary package name 2023-06-27 23:28:48 +08:00
Boshen
fa02547505
Release oxlint v0.0.2 2023-06-27 23:13:57 +08:00
Boshen
b8526e7363
chore(cli): change "Found X errors" to "Found X warnings"
Things linters report are warnings not errors.
2023-06-27 23:03:21 +08:00
Boshen
cddf6469d5
Release oxlint v0.0.1 2023-06-27 22:40:02 +08:00
Boshen
d643cba1cc
fix(linter): fix false postive for constructor_super with empty body 2023-06-27 22:23:30 +08:00
Boshen
1768192eeb
chore(linter): move no-eval to restriction (not in recommended list) 2023-06-27 22:11:44 +08:00
Boshen
90004ba4be
fix(cli): print number of threads used by rayon instead of number of cores 2023-06-27 22:05:44 +08:00
Boshen
681df1ad1f
feat(cli): create a oxlint binary
closes #485
2023-06-27 21:55:07 +08:00
Boshen
23b58db8c5
chore(linter): change no_empty_pattern to correctness (eslint recommended) 2023-06-27 20:29:50 +08:00
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
9e462d655b
chore(benchmark): update i7 results 2023-06-26 14:16:29 +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
Boshen
b2e809812d
chore(benchmark): change to vscode repo with TypeScript 2023-06-25 00:22:54 +08:00
Boshen
93d087c928
chore(benchmark): update pnpm-lock.yaml 2023-06-24 23:30:07 +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
Boshen
9b91d8391d
fix(website): update pnpm lock file 2023-06-22 10:54:36 +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