Boshen
bee548b945
fix(coverage): correct the number on AST Parsed
2023-03-17 11:15:33 +08:00
Boshen
97d01b4ced
chore(coverage): remove stage 3 decorators from conformance tests
...
By looking at the grammar, separate AST nodes need to be created.
Disabling this for now because it still looks like a mess for now.
2023-03-17 10:30:18 +08:00
Boshen
9ed682a38e
fix(semantic): fix function redeclaration errors
...
The problem here we face here is that TypeScript does not consider Annex
B.3.2, which makes implementation a bit more difficult.
This implementation conforms to test262.
2023-03-17 10:06:02 +08:00
Boshen
5b2474600f
fix(cli): should return semantic errors
2023-03-17 09:43:53 +08:00
yangchenye
37ad6f3a15
feat(parser): support decorators in class expression ( #190 )
...
feat(parser): support decorator in class expression
2023-03-17 09:33:04 +08:00
Boshen
164c2831e1
feat(linter): report export errors in javascript
2023-03-15 18:12:34 -07:00
Boshen
8d3a5c46ba
feat(ast,semantic): add ModuleRecord
2023-03-15 18:12:34 -07:00
Boshen
26efbbe59c
chore(deps): bump insta
2023-03-15 21:31:08 +08:00
Xuan
ed0c4b1ea3
feat(linter): add no-dupe-keys rule ( #188 )
...
* feat(linter): add no-dupe-keys rule
* refactor(linter): use map.insert
* fix(linter): fix the comment
2023-03-15 16:23:42 +08:00
Boshen
d1c04523b6
feat(oxc_ast): add VisitMut trait
...
closes #184
2023-03-15 13:35:54 +08:00
Boshen
326de5006b
chore: bump submodules
2023-03-15 12:46:21 +08:00
yangchenye
aaaefc8ba5
feat(linter): implement eslint(no-unsafe-negation) ( #186 )
2023-03-15 11:36:56 +08:00
yangchenye
74c731c415
feat(linter): Implement eslint(no-compare-neg-zero) ( #185 )
2023-03-15 10:44:11 +08:00
magic-akari
867f879483
feat(linter): no-async-promise-executor ( #180 )
...
* feat(linter): no-async-promise-executor
* fix: cargo lint
* fix: prefer `get_inner_expression`
* chore: update
* fix: use precise span
2023-03-15 10:31:08 +08:00
Boshen
b5af93575f
deps: update dependencies ( #183 )
2023-03-15 10:30:12 +08:00
Boshen
46ddf5eb05
ci: combine benchmark results into a single report ( #182 )
2023-03-14 19:04:31 +08:00
Xuan
fca882085f
feat(linter): add no-duplicate-case rule ( #179 )
2023-03-14 16:55:04 +08:00
Xuan
5d3a52c1bb
feat(linter): add no-caller rule ( #178 )
...
* feat(linter): add no-caller rule
* fix(linter): add help message
2023-03-14 12:45:02 +08:00
Xuan
e4d5202f52
fix(rulegen): convert the rule name to underscore case for filenames ( #177 )
2023-03-14 11:26:27 +08:00
Boshen
e262e18e5f
chore(coverage): remove tests for stage 3 proposal-json-modules
2023-03-14 11:02:00 +08:00
Boshen
ee31f5cc6f
feat(linter): check duplicated bound names in ImportDeclaration
2023-03-14 10:42:18 +08:00
Boshen
89f28e9f93
feat(linter): check module in javascript and skip in typescript
2023-03-14 08:53:16 +08:00
Boshen
191258c585
chore: update benchmark with more eslint rules, remove Rome
2023-03-14 08:26:30 +08:00
Boshen
2293129b43
chore: update README with linter details
2023-03-14 08:18:35 +08:00
Boshen
7b1a7d47b6
feat(linter): check await in ClassStaticBlock in javascript
2023-03-14 08:08:24 +08:00
Boshen
297ce2743f
Revert "feat(linter): check await in class static block"
...
This reverts commit 7add71c9dd .
2023-03-14 07:56:04 +08:00
Boshen
7add71c9dd
feat(linter): check await in class static block
2023-03-14 07:46:11 +08:00
Boshen
78bd76e8d0
feat(parser): check function name for await and yield
2023-03-14 07:39:07 +08:00
Boshen
c706d1825d
feat(semantic): turn on strict mode in semantic builder
2023-03-14 00:30:22 +08:00
Boshen
76118e4901
feat(linter): check NewTarget in javascript
2023-03-14 00:05:37 +08:00
Boshen
39795dbb1b
feat(linter): check ArrayPattern in javascript
2023-03-13 23:52:36 +08:00
Boshen
76f7e58036
feat(linter): check FormalParameter in javascript
2023-03-13 23:43:31 +08:00
Boshen
f4c8cb2cde
feat(linter): check FunctionDeclaration in javascript
2023-03-13 23:35:42 +08:00
Boshen
2fe8fba5b6
refactor(lexer): make TokenValue 8 bytes smaller by changing RegExp.pattern to &'a str ( #175 )
2023-03-13 23:20:52 +08:00
Boshen
5381fd0cf8
feat(linter): check Directive in javascript
2023-03-13 23:19:35 +08:00
Boshen
7269d32346
feat(linter): check FormalParameters in javascript
2023-03-13 23:12:42 +08:00
Boshen
040e41240b
feat(linter): check AwaitExpression and YieldExpression in javascript
2023-03-13 13:45:49 +08:00
Boshen
fa6079a633
chore: move _typos.toml to .typos.toml so it doesn't show up in file viewers
2023-03-13 11:26:01 +08:00
Boshen
f36e3301fd
refactor(lexer): change TokenValue::String(Atom) to TokenValue::String(&str) ( #174 )
2023-03-13 09:33:44 +08:00
Boshen
fce6e1ec73
feat(parser): check YieldExpression
2023-03-12 23:41:27 +08:00
Boshen
88fd0a05ec
feat(parser): check AwaitExpression
2023-03-12 23:37:21 +08:00
Boshen
d6e8c6fb2f
feat(parser): check ReturnStatement in return context
2023-03-12 23:30:32 +08:00
Boshen
84eaa0b7e3
feat(linter): check eval and arguments in JavaScript
2023-03-12 23:25:57 +08:00
Boshen
93b06e948a
feat(ast_parser): check await and yield identifier error
2023-03-12 23:22:10 +08:00
Boshen
577a86edce
chore(benchmark): increase benchmark measurement time, CI is too unstable
2023-03-12 22:05:21 +08:00
Boshen
605684f4c0
fix: fix clippy warnings
2023-03-12 21:53:08 +08:00
Boshen
66207e74a4
refactor(lexer): remove LexerContext::JsxChild ( #172 )
2023-03-12 20:19:51 +08:00
Boshen
be34f8dd14
chore: update README
2023-03-12 17:16:45 +08:00
Boshen
35c2750790
chore: update README
2023-03-12 17:08:57 +08:00
Boshen
282f325694
chore: update benchmark result
2023-03-12 16:41:10 +08:00