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
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
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
u9g
631062514c
Fix confusing and/or incorrect condition in linter ( #446 )
2023-06-15 14:09:05 +08:00
Carter Snook
985b8f21d9
feat: support hashbang interpreter comments ( #431 )
2023-06-11 23:55:58 +08:00
Carter Snook
9df1545602
feat(linter): improve eslint(no-eval) compat ( #419 )
2023-06-10 11:39:54 +08:00
Carter Snook
eca8541032
feat(linter): add eslint(no-eval) ( #417 )
2023-06-09 10:36:12 +08:00
Boshen
180eac5523
refactor(rust): fix clippy errors
2023-06-02 10:09:32 +08:00
Boshen
591bee2ba1
chore(linter): update snapshots
2023-05-31 16:44:46 +08:00
Boshen
87a0b6c889
refactor(ast): s/ArrowFunctionExpression/ArrowExpression
2023-05-28 22:40:16 +08:00
Boshen
a0b09a3f27
refactor(ast): remove RestElement from BindingPattern
2023-05-16 22:25:52 +08:00
Boshen
af95b59a0e
feat(ast): split Property into ObjectProperty and BindingProperty ( #361 )
2023-05-16 15:51:50 +08:00
Boshen
2812591e4a
chore(rust): allow clippy::new_without_default
2023-05-13 15:07:00 +08:00
Boshen
14720e7c69
refactor: move SourceType from oxc_ast to oxc_span ( #351 )
...
related #350
2023-05-12 23:16:14 +08:00
Boshen
af1cd1c520
refactor(span): make Atom a newtype
2023-05-12 14:25:27 +08:00
Boshen
7f93e58f10
chore: remove all #[must_use]
2023-05-11 21:08:00 +08:00
Boshen
b94fe5ebfa
refactor(syntax): clean up Operator
2023-05-09 22:04:50 +08:00
Boshen
65a445f512
refactor: move operator to oxc_syntax ( #341 )
2023-05-08 15:35:01 +08:00
Boshen
29beb851f6
refactor(ast,hir): remove unnessary Eq and PartialEq
2023-05-07 22:42:57 +08:00
Boshen
c2428d8abd
chore: rename oxc_printer to oxc_formatter ( #336 )
2023-05-07 17:47:13 +08:00
Wenzhe Wang
638576c323
fix(ast): replace ArrayElementType ( #330 )
2023-05-04 20:33:58 +08:00
Boshen
f0066ea4cc
refactor: unify the usage of std::fmt import
2023-04-27 22:21:59 +08:00
Boshen
cd276c2850
feat: add oxc_span crate ( #323 )
2023-04-27 21:51:15 +08:00
Wenzhe Wang
441bc8835f
feat(linter): bad array method on arguments ( #303 )
2023-04-22 11:07:16 +08:00
Boshen
7f946fb75d
chore: bump nightly to nightly-2023-04-20 ( #304 )
2023-04-20 23:35:38 +08:00
Boshen
5b3b757290
chore(linter): add test to ensure documentation exists ( #296 )
2023-04-18 22:14:54 +08:00
Boshen
c14c82b15d
feat(printer,semantic): mangler ( #285 )
...
closes #284
2023-04-18 21:32:35 +08:00
Boshen
3ebbf03217
feat(cli): test print rules ( #295 )
2023-04-18 21:27:17 +08:00
Shannon Rothe
20755a969a
feat(cli): add --rules CLI flag ( #290 )
2023-04-18 15:54:44 +08:00
Boshen
7f0b16fb9c
chore: remove some unused code
2023-04-17 23:25:57 +08:00
Jin Wei Tan
99894ee154
feat(linter): implement no-unused-labels ( #282 )
2023-04-16 21:10:19 +08:00
Wenzhe Wang
aa85e5bb7f
feat(linter): implement DeepScan bad comparison sequence rule ( #280 )
2023-04-15 23:52:24 +08:00
Jin Wei Tan
161231347b
feat(linter): implement no-shadow-restricted-names ( #277 )
2023-04-14 23:33:02 +08:00
Shannon Rothe
7899cf545d
feat(semantic): parse jsdoc comments ( #205 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-04-12 16:47:19 +08:00
Boshen
aedaa1a110
refactor(linter,semantic): move syntax check from linter to semantic ( #272 )
...
Syntax checker is part of semantic analyzer,
it doesn't make sense for the user to add a linter just for semantic errors
2023-04-10 12:23:53 +08:00
yangchenye
35b19e7edf
feat(semantic): Add index mapping from span to reference id ( #270 )
...
* feat(semantic): Add index mapping from span to reference id
* Switch to BTreeMap for index
2023-04-10 10:20:15 +08:00
Wenzhe Wang
b51c2df3cc
feat(linter): no constant condition ( #271 )
...
* feat(linter): if statement
* feat: add conditionalExpression
* feat(linter): add test for loop
* chore(linter): allow too many lines
* refactor(linter): use GetSpan trait
2023-04-09 18:49:46 +08:00
Wei Zhu
034ca98182
fix(linter): fix panic when directive appears at the first line ( #264 )
2023-04-06 20:46:01 +08:00
Boshen
043a751dc7
chore(linter) move bad_bitwise_operator to restriction category
...
closes #243
2023-04-05 14:29:32 +08:00
Boshen
181d8bcc4a
refactor(ast): make BoundNames take a closure so it does not allocate ( #249 )
...
closes #237
2023-04-04 20:55:00 +08:00
yangchenye
222dcb3bf1
perf(semantics): avoid hashing when resolving references ( #248 )
2023-04-03 14:47:59 +08:00
Wenzhe Wang
b17335d724
feat(linter): bad bitwise operator rule ( #246 )
2023-04-02 23:34:37 +08:00
Ash
ab2ef4f89b
fix: nullish coalescing operator precedence ( #240 )
2023-04-01 23:40:25 +08:00
Wenzhe Wang
20693dc072
feat(linter): add no-bitwise rule ( #228 )
2023-03-31 09:11:46 -07:00
Boshen
d232199e1c
refactor(parser): return Rc<Trivias> from TriviaBuilder ( #231 )
...
closes #229
2023-03-31 09:02:48 -07:00
yangchenye
a2d0d2ddc9
feat(linter): implement eslint(array-callback-return) ( #221 )
...
* feat(linter): implement eslint(array-callback-return)
* Add more comments & use phf_set for target methods
* Revert changes to AST
* Document get_enclosing_function
* Clean up names
* Remove redundant visitor and flags
2023-03-29 05:58:39 -07:00