Yunfei He
5bf9dddaec
refactor(resolver): remove unnecessary RefCell ( #849 )
2023-09-04 13:27:22 +08:00
Wenzhe Wang
8588f8b9c6
chore(linter): downgrade category of expect-expect and no-alias-methods ( #848 )
...
There are too many errors(7000+) in vscode repo, so downgrade this rule.
And I think
[no-alias-methods](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-alias-methods.md )
is also too strict when it is placed in [style
config](https://github.com/jest-community/eslint-plugin-jest/blob/main/README.md#style ),
so change it also.
2023-09-03 18:28:40 +08:00
Boshen
6706541049
refactor(linter): remove complicated linter service setup
2023-09-03 18:14:05 +08:00
Boshen
b9bd5ff7ab
refactor(cli): collect all the paths before linting
2023-09-03 16:36:02 +08:00
Boshen
deb50e1a25
chore(semantic): return Arc<ModuleRecord> from semantic
2023-09-03 15:41:11 +08:00
Boshen
91f4896247
refactor(linter): clean up Test a bit
2023-09-03 15:36:46 +08:00
Boshen
ba54eb67b3
chore(semantic): use Arc<ModuleRecord>
2023-09-03 15:29:00 +08:00
Boshen
aa7b665fe9
feat(resolver): add thiserror ( #847 )
2023-09-03 14:50:31 +08:00
Devin-Yeung
a969f69627
perf(linter): parse ts-directive manually ( #845 )
2023-09-03 14:13:16 +08:00
Boshen
93adc9b9c2
Release oxc v0.1.3
2023-09-03 12:22:05 +08:00
Boshen
37bf4c4421
Release oxc v0.1.2
2023-09-03 11:30:44 +08:00
Boshen
7bcf2d7c43
chore(oxc): add features for semantic, formatter and minifier
2023-09-03 11:28:20 +08:00
Boshen
6f270f1198
perf(linter): swap the order of checks for no_caller ( #844 )
2023-09-03 10:19:27 +08:00
Yunfei He
815db57a25
fix(semantic): symbol of identifier of top level function declaration should be in the root scope ( #843 )
...
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2023-09-03 10:16:47 +08:00
Boshen
d25355c9e8
perf(lexer): reduce an extra branch from peek ( #841 )
2023-09-03 00:02:42 +08:00
Boshen
53b094e46c
chore: clean up deps ( #840 )
2023-09-02 21:34:24 +08:00
Boshen
56aaf31fb1
refactor(benchmark): use codspeed for all benchmarks ( #839 )
2023-09-02 20:35:48 +08:00
Boshen
e4a3838ecb
chore(resolver): benchmark with codspeed ( #838 )
2023-09-02 18:27:37 +08:00
Boshen
6ed57532cd
fix(resolver): fix a case where ignored package has a fallback ( #837 )
2023-09-02 17:22:35 +08:00
Boshen
7f504961ec
fix(resolver): fix a case where an alias is part of a dashed package name ( #836 )
2023-09-02 16:37:07 +08:00
Boshen
9724365862
refactor(resolver): remove nodejs_resolver comparison
...
we no longer need to compare with nodejs_resolver
2023-09-02 15:12:26 +08:00
Boshen
bebdbfb9a6
feat(resolver): add tracing example
2023-09-02 15:12:25 +08:00
Boshen
d74da2f3bf
fix(resolver): fix cases with conflicting node_modules path ( #835 )
2023-09-02 14:45:10 +08:00
Wenzhe Wang
fa1d7da090
feat(linter): add eslint-plugin-jest/no-conditional-expect rule ( #832 )
...
port
[no-conditional-expect](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-conditional-expect.md )
2023-09-02 14:37:15 +08:00
Boshen
6ae6532245
fix(resolver): add test case for resolve_to_context ( #834 )
2023-09-02 12:03:07 +08:00
Boshen
47a076c226
feat(resolver): add an option to turn off builtin_modules ( #833 )
2023-09-02 11:38:03 +08:00
dependabot[bot]
8caf77300b
chore(deps): bump the dependencies group with 10 updates ( #831 )
2023-09-01 13:56:12 +08:00
Boshen
0921b733f7
deps: pin ezno-checker so dependabot can do its work
2023-09-01 12:18:05 +08:00
Boshen
693145107c
refactor(linter): less a global hashmap to reduce rule timer macro expansion ( #822 )
...
closes #819
2023-09-01 10:32:17 +08:00
Boshen
129191fc44
perf(resolver): stop descending into node_modules when possible ( #821 )
2023-09-01 10:18:59 +08:00
Boshen
777cc003a5
fix(resolver): resolve exports field that are directories ( #820 )
2023-08-31 16:10:03 +08:00
Boshen
92e7ecedc5
chore(linter): remove unmaintained typescript/isolated-declaration
2023-08-30 22:42:09 +08:00
Wenzhe Wang
7233aef0de
feat(linter): add eslint-plugin-jest/no_alias_method rule ( #818 )
...
port
[no_alias_method](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-alias-methods.md )
2023-08-30 22:38:01 +08:00
Boshen
e52157976f
fix(resolver): fix resolving package_self with the correct subpath
2023-08-30 19:05:33 +08:00
Boshen
c68bafe776
fix(resolver): correct behavior for enforceExtension
2023-08-30 18:28:07 +08:00
Boshen
589a4d6cd8
fix(resolver): do not resolve browser field that are strings ( #816 )
2023-08-30 14:00:59 +08:00
u9g
a38619b780
feat(vscode): Add linter plugin to vscode extension ( #813 )
2023-08-29 23:35:32 -04:00
Boshen
66e883ae8c
fix(resolver): make sure package name is valid when loading package self ( #810 )
2023-08-29 22:56:48 +08:00
u9g
05bb29a11e
feat(query): Add fields ( #807 )
...
```diff
+ Expression.or_value_at_declaration
+ Function.body
```
2023-08-28 13:56:05 +08:00
u9g
8f5cb4be8c
rename get_node_by_ident to get_declaration_of_variable ( #806 )
...
The previous function name wasn't really clear to me, I think this is
better.
2023-08-28 13:00:25 +08:00
EliLichtblau
6a9d57061c
TSTypeName change identifer name to identifier reference ( #804 )
...
When initially written types were not in the symbol table. Now that
types are in the symbol table it makes sense given
```ts
type A = 1
type B = A
```
that you can get to the symbol id for for A from type B = A.
Please correct me if I'm wrong about how I implemented this. I also
verified that occurrence (I believe this is the correct word) behaves
how I would expect.
```ts
type RecursiveType = string | {[x: string]: RecursiveType}
```
Does populate a reference.
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2023-08-28 11:42:21 +08:00
u9g
a44dde5303
feat(linter_plugin): Add linter plugin crate ( #798 )
...
Adds a `linter_plugin` crate which adds `oxc_query` support to any
`oxc_linter` consumers such as `oxc_cli` and `editor/vscode`
2023-08-28 11:40:00 +08:00
Wenzhe Wang
8b24052438
fix(linter): no-var-requires not warning if has bindings in ancestors ( #799 )
2023-08-28 11:24:17 +08:00
Boshen
dd7749f949
improve README ( #800 )
...
closes #686
Rendered: https://github.com/web-infra-dev/oxc/blob/readme/README.md
This is a refinement for the README, which should include information
for different interests: first time reader, explorer, rust crate / napi
user etc.
2023-08-27 22:36:17 +08:00
Wenzhe Wang
3721837e13
feat(linter): eslint-plugin-jest/expect-expect ( #802 )
...
Port [eslint-plugin-jest/expect-expect
](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/expect-expect.md )
2023-08-27 21:42:58 +08:00
Boshen
ed9e3e0774
refactor(linter): move the label message to help
2023-08-27 11:49:26 +08:00
Boshen
1f27426570
Release crates as v0.1.1
2023-08-26 17:53:11 +08:00
u9g
ad05e196cf
feat(query): Fix Spread typename ( #797 )
2023-08-26 10:50:21 +08:00
Boshen
c88823244e
fix(cli): correct ignore-pattern behavior; add more cli tests ( #796 )
2023-08-26 00:03:49 +08:00
Boshen
12798e075f
refactor: improve code coverage a little bit
2023-08-25 23:07:14 +08:00