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
阿良仔
7763197da3
fix(vscode): avoid unwrap when oxc plugin file doesn't exist ( #817 )
2023-08-30 21:30:22 +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
Boshen
8f8ef9ff08
chore(README): change rome to biome
2023-08-29 22:31:22 +08:00
Boshen
8e598a2bf9
fix(README): fix ruff link
...
closes #809
2023-08-29 19:41:14 +08:00
Boshen
00ed939cbc
feat(coverage): init git submodules if they are empty ( #808 )
...
closes #805
2023-08-29 13:35:32 +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
Devin-Yeung
fe2d8448a7
chore(ci): check links in CI ( #803 )
...
As mentioned in
https://github.com/web-infra-dev/oxc/pull/800#discussion_r1306616508 , we
better check the validity of links in CI
---------
Co-authored-by: Boshen <boshenc@gmail.com>
2023-08-28 11:46:56 +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
350cd4a7fd
chore(README): adjust some wording choices for modesty
2023-08-28 10:45:37 +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
阿良仔
0fef2d317a
chore: proxy detection for all tasks ( #801 )
...
related PR: #740
2023-08-27 17:24:28 +08:00
Boshen
a803e04a96
Release oxlint v0.0.11
2023-08-27 17:12:21 +08:00
Boshen
ed9e3e0774
refactor(linter): move the label message to help
2023-08-27 11:49:26 +08:00
Boshen
8d06051cdb
chore: remove benchmark folder
...
repo moved https://github.com/Boshen/bench-javascript-linter
2023-08-26 18:59:37 +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
Boshen
3d8ee2567f
feat(resolver): check for node.js core modules ( #794 )
2023-08-25 22:33:10 +08:00
Boshen
1bc1418ee6
feat(resolver): implement nested alias field ( #795 )
2023-08-25 22:32:57 +08:00
Boshen
4ee56576c7
feat(cli): add basic unit tests ( #793 )
2023-08-25 21:26:14 +08:00
Boshen
1b5ef7cdc8
refactor(cli): remove unused lint/error.rs ( #792 )
2023-08-25 16:46:26 +08:00
Boshen
592137586c
feat(cli): use insta_cmd for cli snapshot testing ( #791 )
...
closes #776
2023-08-25 16:26:34 +08:00
Boshen
a5a601e58d
ci: remove needs: cache from ecosystem-test
2023-08-25 16:24:14 +08:00
Boshen
33ea85813e
fix(linter): show the escaped span for no-useless-escape ( #790 )
...
closes #782
2023-08-25 15:21:17 +08:00
Boshen
1a591c7a2d
ci: build benchmark binary separately for reducing total execution time ( #789 )
...
benchmark execution time reduced from 15 mins to 12 mins. Time reduction
should be more noticeable for large code changes which require longer
compile time.
2023-08-25 14:40:08 +08:00
u9g
1c6b87b415
feat(query): Unify spread types, add ExpressionArrayElement, and ancestors is nullish now ( #788 )
...
```diff
- ArrayElementAST
- SpreadArrayElement
- SpreadArrayElementAST
- SpreadIntoObject
- SpreadIntoObjectAST
+ ExpressionArrayElement
+ ExpressionArrayElement implements HasSpan
+ ExpressionArrayElement implements ArrayElement
+ ExpressionArrayElement.expression
+ ExpressionArrayElementAST
+ ExpressionArrayElementAST implements ArrayElement
+ ExpressionArrayElementAST implements HasSpan
+ ExpressionArrayElementAST implements ExpressionArrayElement
+ Spread
+ Spread implements ObjectProperty
+ Spread implements ArrayElement
+ Spread implements HasSpan
+ Spread.expression
+ SpreadAST
+ SpreadAST implements ObjectProperty
+ SpreadAST implements HasSpan
+ SpreadAST implements ArrayElement
+ SpreadAST implements ASTNode
+ SpreadAST implements Spread
```
2023-08-25 13:29:06 +08:00
Boshen
24c56a8b53
Revert "fix(tasks): use the current working directory if project rood is not found"
...
This reverts commit 971f597036 .
2023-08-25 12:56:12 +08:00
Boshen
ba8ef7bfc7
fix(deps): use one version of textwrap
2023-08-25 12:54:38 +08:00
Boshen
971f597036
fix(tasks): use the current working directory if project rood is not found
2023-08-25 12:27:55 +08:00
u9g
e0a85eec01
feat(query): Add fields and new ArrayElement types ( #787 )
...
```diff
- Array.elements
+ Array.element
+ ElidedArrayElement
+ ElidedArrayElement implements ArrayElement
+ ElidedArrayElement implements HasSpan
+ ElidedArrayElementAST
+ ElidedArrayElementAST implements ArrayElement
+ ElidedArrayElementAST implements HasSpan
+ ElidedArrayElementAST implements ElidedArrayElement
+ SpreadArrayElement
+ SpreadArrayElement implements ArrayElement
+ SpreadArrayElement implements HasSpan
+ SpreadArrayElement.spread
+ SpreadArrayElementAST
+ SpreadArrayElementAST implements ArrayElement
+ SpreadArrayElementAST implements HasSpan
+ SpreadArrayElementAST implements SpreadArrayElement
+ VariableDeclarationAST.kind
```
2023-08-24 23:46:00 -04:00
u9g
741aa8df1f
feat(ast): Add to ChainExpression and ExpressionArrayElement to ASTKind ( #785 )
2023-08-25 03:03:53 +00:00
Wenzhe Wang
31d56698f7
refactor(linter): extract is_valid_jest_call ( #781 )
2023-08-24 23:05:03 +08:00
Boshen
2f0ff28f47
Rust 1.72.0 ( #784 )
2023-08-24 23:02:19 +08:00
Boshen
531e89a74a
Revert "fix(resolver): fix a case where package name and specifier is the wrong order"
...
This reverts commit caf1dfbfcd .
2023-08-24 22:03:30 +08:00
Boshen
a272c1ffe4
perf(lexer): reduce checks on ident -> keyword ( #783 )
2023-08-24 18:43:03 +08:00
Boshen
c8a215ea5e
perf(lexer): jump table ( #779 )
2023-08-24 15:02:06 +08:00
Boshen
b2db6f7ef1
chore(benchmark): remove the measurement_time
2023-08-24 14:31:19 +08:00
u9g
4f686b6a75
feat(query): add Paren*Expr* type and add index to Argument type and fix todo in ObjectExpr ( #780 )
...
```diff
+ Argument.index
+ ParenthesizedExpression
+ ParenthesizedExpression implements Expression
+ ParenthesizedExpression implements HasSpan
+ ParenthesizedExpression.expression
+ ParenthesizedExpressionAST
+ ParenthesizedExpressionAST implements Expression
+ ParenthesizedExpressionAST implements HasSpan
+ ParenthesizedExpressionAST implements ParenthesizedExpression
+ ParenthesizedExpressionAST implements ASTNode
```
2023-08-24 04:21:02 +00:00
Wenzhe Wang
fd2f8fb12b
feat(linter): detect import ( #778 )
...
Support test cases like
```js
import { test } from '@jest/globals';
test('something');
```
2023-08-24 11:34:15 +08:00