Commit graph

2523 commits

Author SHA1 Message Date
Dunqing
51cecbb3ea
refactor(transformer/decorators): align the implementation of all versions (#2159) 2024-01-25 13:11:24 +08:00
cin
38914308e7
feat(linter): eslint: no-void (#2162)
Rule Detail:
[link](https://github.com/eslint/eslint/blob/main/lib/rules/no-void.js)
2024-01-25 12:40:30 +08:00
hjio
a5d7c67982
feat(linter) eslint-plugin-react/jsx-no-target-blank (#2149)
#1022 try to implement `jsx-no-target-blank`

* code:
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/lib/rules/jsx-no-target-blank.js
* doc:
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
* test:
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/tests/lib/rules/jsx-no-target-blank.js

---------

Co-authored-by: huangjunjie.coder <huangjunjie.coder@bytedance.com>
2024-01-25 09:42:05 +08:00
Maurice Nicholson
26022322ff
fix(linter): explicit-length-check inside ternary (#2165) 2024-01-25 08:09:35 +08:00
Boshen
3d184d56a8
deps: bump 2024-01-24 15:08:47 +08:00
Boshen
1c44e0a510
deps(website): bump dependencies 2024-01-24 13:04:35 +08:00
Boshen
fb6eeef0a1
deps(vscode): bump deps 2024-01-24 11:25:18 +08:00
Dunqing
b261e86ea9
refactor(ast): improve simple_assignment_target_identifier and simple_assignment_target_member_expression method (#2153)
Based on current usage, I think returning AssignmentTarget is better.
2024-01-24 11:24:27 +08:00
Dunqing
7f89bfea0d
feat(transformer/decorators): support version 2023-05 (#2152) 2024-01-24 11:19:29 +08:00
Dunqing
04b401cbfd
feat(transformer/decorators): support transform the class decorators in export declaration (#2145) 2024-01-24 11:13:29 +08:00
xc2
8e332b20a1
ci(oxlint): run smoke test against both glibc and musl (#2155) 2024-01-24 11:10:53 +08:00
Dunqing
9e598ff650
feat(transformer): add decorators plugin (#2139) 2024-01-24 11:09:19 +08:00
Wenzhe Wang
1ee6d8cea9
feat(codegen): move string test to codegen (#2150) 2024-01-23 23:49:36 +08:00
Boshen
2406e94c0d
Release oxlint and vscode extension v0.2.4 2024-01-23 19:30:09 +08:00
Boshen
25a089ba01
Release oxlint v0.2.4-alpha.0 2024-01-23 19:09:57 +08:00
Boshen
382a187175
fix(npm): fix bin script for musl / gnu 2024-01-23 19:09:11 +08:00
Boshen
fda2d7c334
deps(website): bump deps (#2146) 2024-01-23 17:15:42 +08:00
renovate[bot]
0f9b9a814e
chore(deps): update vscode (#2142) 2024-01-23 16:10:59 +08:00
Boshen
ea2e957a48
chore(renovate): ignore napi/ and npm/ 2024-01-23 15:49:39 +08:00
Boshen
16729ae950
fix(renovate): use matchFileNames 2024-01-23 15:42:02 +08:00
Boshen
376f13d65a
chore(renovate): fix includePaths 2024-01-23 15:26:33 +08:00
Boshen
e1ea0e4d17
fix(renovate): ignore breaking major bumps from owo-colors and syn 2024-01-23 15:20:06 +08:00
Boshen
16a192cf1a
chore: try fix broken env_logger 2024-01-23 15:03:53 +08:00
renovate[bot]
0be0a234ce
chore(deps): update cargo (#2138) 2024-01-23 14:48:04 +08:00
Boshen
3032dbb98e
fix(renovate): ignore textwrap 2024-01-23 14:38:15 +08:00
Boshen
b329cc4db6
deps: bump env_logger 2024-01-23 14:37:07 +08:00
Boshen
e5d5e60469
chore(renovate): update 2024-01-23 14:23:06 +08:00
Boshen
b46dd9bbf8
chore(renovate): update 2024-01-23 14:11:34 +08:00
Boshen
d5014c03e7
chore: use renovatebot instead of dependabot 2024-01-23 13:58:27 +08:00
Boshen
518bc0d7c1
Release oxlint and vscode extension v0.2.3 2024-01-23 12:38:11 +08:00
overlookmotel
777352e2ba
fix(transformer): always create valid identifiers (#2131)
I'm not familiar with the transformer, so not 100% sure what this
function does. But from the name `create_valid_identifier`, I'm guessing
that `-` is a mistake - it's not a valid character to have in
identifiers.

If I've misunderstood, please feel free to close this.
2024-01-23 12:35:41 +08:00
Yuji Sugiura
71173a9181
feat(tasks): Add @typescript-eslint to lint_rules CI task (#2134)
Part of #2020

- Add `@typescript-eslint` plugin rules
- w/ refactoring
  - Fix compile errors to add other plugins
  - Remove not intended unsupported rule in `eslint`

(Use #2117 for updating for a while?)
2024-01-23 12:29:55 +08:00
overlookmotel
0dc1804a52 refactor(syntax): don't re-export unicode_id_start 2024-01-23 11:05:17 +08:00
overlookmotel
ee949fc78d refactor(transformer): use is_identifier_part 2024-01-23 11:05:17 +08:00
overlookmotel
040ee192c4 refactor(transformer): use is_identifier_name from oxc_syntax 2024-01-23 11:05:17 +08:00
overlookmotel
bc7ea0bedb refactor(parser): make is_identifier methods consistent 2024-01-23 11:05:17 +08:00
overlookmotel
27aaff2bef
refactor(syntax): ASCII tables static not const (#2128)
A small nit: `ASCII_CONTINUE` is used in multiple places, so it's
preferable that it's a `static` not a `const` so it only gets included
in the binary once, rather than once for each usage.

Only makes a tiny difference on benchmarks (~0.1 ms), but change seems
worthwhile anyway just to be more "good practice".
2024-01-22 21:49:54 +08:00
Boshen
3ef631807d
Release oxlint 0.2.3-alpha.0 2024-01-22 20:07:27 +08:00
Boshen
e81e8c7124
ci: release oxlint with linux-{x64-gnu, arm64-gnu, x64-musl, arm64-musl} (#2126)
closes #1736
2024-01-22 19:56:27 +08:00
Valerii Smirnov
6d808a673c
feat(linter): linter-eslint-plugin-import/no-named-as-default (#2109)
#1117 

Code:
https://github.com/import-js/eslint-plugin-import/blob/main/src/rules/no-named-as-default.js
Tests:
https://github.com/import-js/eslint-plugin-import/blob/main/tests/src/rules/no-named-as-default.js
Docs:
https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default.md
2024-01-22 19:55:05 +08:00
Boshen
ad133ba647
chore: update snapshots 2024-01-22 19:16:09 +08:00
Boshen
a978639718
feat(cli): disallow path pointing to parent directories (#2125)
Linting parent directories introduces undefined behavior because
the intention is not clear. This is a future proof precaution.

closes #1887
2024-01-22 17:52:57 +08:00
Boshen
26571c72de
chore(just): change sync command to sync-submodules
This should avoid accidentally running the command
2024-01-22 17:45:13 +08:00
Boshen
d00c44c484
fix(linter): allow [...new Array(n)] in no-useless-spread (#2124)
closes #1735
2024-01-22 17:10:58 +08:00
Boshen
fe7c4d09d2
ci: improve ecosystem ci (#2099) 2024-01-22 17:05:25 +08:00
Boshen
d90db3afe0
feat(linter): promote no-new-array to correctness with better help message (#2123)
relates #1735
2024-01-22 16:57:57 +08:00
Hulk
20a34b5294
feat: introduce --react-perf-plugin CLI flag, update rules to correctness (#2119)
https://github.com/oxc-project/oxc/issues/2041#issuecomment-1903316240

Closes #2041
2024-01-22 16:45:32 +08:00
Boshen
69fecac733
feat(linter): eslint config jsonc support (#2121) 2024-01-22 16:19:31 +08:00
Yuji Sugiura
ce94714c31
feat(tasks): Enable tasks/lint_rules CI (#2118)
Part of #2020

👉🏻  See generated comment on #2117
2024-01-22 15:29:37 +08:00
Dunqing
766ca63aa0
refactor(ast): rename RestElement to BindingRestElement (#2116)
close: #2115
2024-01-22 14:28:35 +08:00