Boshen
4801e68b56
chore: bump deps ( #311 )
2023-04-22 22:09:53 +08:00
Boshen
8eeba69ea9
fix(ast): fix source_type attributes is null when serialized
2023-04-22 18:24:35 +08:00
Boshen
08dfbc98b2
fix(oxc_ast,oxc_parser): fix clippy warnings
2023-04-22 16:24:50 +08:00
Boshen
f382d36375
chore: publish crates v0.0.6
2023-04-22 16:09:05 +08:00
Boshen
080baaa2db
chore: use taplo to reformat toml files
2023-04-22 15:58:59 +08:00
Boshen
b95eeec47d
refactor(ast): stop aligning oxc ast with estree so it is less confusing
2023-04-22 15:44:19 +08:00
Boshen
9039c13f50
chore: unify crate versions
2023-04-22 15:04:26 +08:00
Boshen
d49195f7f2
feat: napi ( #302 )
...
* chore: only ignore js files from the root
* feat: napi
2023-04-22 14:41:45 +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
21d4954071
Website ( #281 )
...
feat(site): init website
Co-authored-by: Gwen <guan_wy@foxmail.com>
2023-04-19 16:37:44 +08:00
Boshen
298ab996c7
chore(ast): remove unused NumberLiteral::to_string ( #298 )
2023-04-19 15:15:09 +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
42859b3b51
fix(parser): fix fuzzer
2023-04-18 10:35:09 +08:00
Boshen
7f0b16fb9c
chore: remove some unused code
2023-04-17 23:25:57 +08:00
Boshen
aa478c585c
chore(minifier): add test fixture ( #287 )
2023-04-17 11:24:58 +08:00
Boshen
76a287d856
refactor(semantic): remove unused AstNodeId::new
2023-04-16 22:58:46 +08:00
Boshen
f79f0eb631
refactor(oxc_ast): change SourceType::with_ methods to return Self
2023-04-16 21:32:00 +08:00
Jin Wei Tan
99894ee154
feat(linter): implement no-unused-labels ( #282 )
2023-04-16 21:10:19 +08:00
Boshen
bfea368524
chore: remove target_arch from std::mem::size_of checks
2023-04-16 21:08:12 +08:00
Boshen
d29bf62904
refactor(parser): remove some unused expression branchings
2023-04-16 12:26:58 +08:00
Boshen
6cbfc29c90
refactor(parser): remove some useless derive(Debug)
2023-04-16 12:19:39 +08:00
Boshen
ca0e80691c
refactor(oxc_parser): remove unused re_lex_as_typescript_r_angle
2023-04-16 12:15:49 +08:00
Boshen
50749f7c7f
refactor(allocator): clean up and add unit tests
2023-04-16 12:07:03 +08:00
Boshen
94cb990a48
refactor(oxc_ast): clean up doc
2023-04-16 00:39:07 +08:00
Wenzhe Wang
aa85e5bb7f
feat(linter): implement DeepScan bad comparison sequence rule ( #280 )
2023-04-15 23:52:24 +08:00
Boshen
fec5aafbf1
refactor(oxc_parser): remove a few unused diagnostics
2023-04-15 18:13:15 +08:00
Boshen
4939eeab6a
refactor(oxc_ast): cleanup docs and exports
2023-04-15 18:02:17 +08:00
Boshen
cfe3dd0869
chore: rust taplo format
2023-04-15 14:14:11 +08:00
Jin Wei Tan
161231347b
feat(linter): implement no-shadow-restricted-names ( #277 )
2023-04-14 23:33:02 +08:00
Boshen
9eec306818
chore(minifier): add SemanticBuilder to minifier example
...
so we can start measuring perf
2023-04-14 13:21:04 +08:00
Boshen
fc7cad9120
fix(parser): reset [In] context in parse_function
2023-04-13 22:16:48 +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
040ac8256f
Release
2023-04-10 22:35:05 +08:00
Boshen
bb18132da5
refactor(oxc_diagnostics): remove error declarations
...
Make this crate not dependent on `oxc_ast`
2023-04-10 22:21:05 +08:00
Boshen
04592b3e4f
feat(cli): add --threads 1 option for rayon to use only 1 threads
2023-04-10 22:13:41 +08:00
Boshen
48736e53af
fix(parser): fix panic in unexpected token
2023-04-10 21:57:31 +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
Boshen
024f1a1552
fix(parser): fix [+In] Destructuring Binding Pattern Initializer ( #267 )
2023-04-06 21:47:07 +08:00
Boshen
398dbfd2a7
fix(paresr): parse [+In] in template ( #266 )
...
relates #255
2023-04-06 21:37:34 +08:00
Boshen
6360bdad31
fix(parser): fix [+in] context in CallArguments ( #265 )
...
relates #255
2023-04-06 21:02:30 +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
Wei Zhu
f9347b55b7
fix(parser): fix parse error on JSXText preceded by JSXFragment ( #262 )
...
Current implement was unable to parse `<div><></>foo</div>`, as `foo` was identified as Identifier.
2023-04-06 17:17:46 +08:00
Boshen
dc090208c4
fix(parser): fix crashing on empty ParenthesizedExpression with comments ( #263 )
...
relates #232
2023-04-06 17:16:15 +08:00
Wei Zhu
b17181a0c4
fix(parser): fix additional char being consumed in JSXText ( #259 )
2023-04-06 13:52:04 +08:00