Skip to content

Commit 32fdca2

Browse files
Release 0.5.0 (#147)
Co-authored-by: Boshen <Boshen@users.noreply.github.com>
1 parent cd0f4ad commit 32fdca2

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

src/docs/guide/usage/linter/generated-cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Arguments:
5555
Enable the experimental jsdoc plugin and detect JSDoc problems
5656
- **` --jest-plugin`** &mdash;
5757
Enable the Jest plugin and detect test problems
58+
- **` --vitest-plugin`** &mdash;
59+
Enable the Vitest plugin and detect test problems
5860
- **` --jsx-a11y-plugin`** &mdash;
5961
Enable the JSX-a11y plugin and detect accessibility problems
6062
- **` --nextjs-plugin`** &mdash;
@@ -113,5 +115,7 @@ Arguments:
113115
list all the rules that are currently registered
114116
- **`-h`**, **`--help`** &mdash;
115117
Prints help information
118+
- **`-V`**, **`--version`** &mdash;
119+
Prints version information
116120

117121
<!-- textlint-enable -->

src/docs/guide/usage/linter/generated-rules.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
The progress of all rule implementations is tracked [here](https://github.com/oxc-project/oxc/issues/481).
44

5-
- Total number of rules: 369
6-
- Rules turned on by default: 90
5+
- Total number of rules: 376
6+
- Rules turned on by default: 91
77

88
<!-- textlint-disable terminology -->
99

10-
## Correctness (158):
10+
## Correctness (159):
1111

1212
Code that is outright wrong or useless.
1313
| Rule name | Source | Default |
@@ -35,6 +35,7 @@ Code that is outright wrong or useless.
3535
| no-extra-boolean-cast | eslint ||
3636
| no-func-assign | eslint ||
3737
| no-global-assign | eslint ||
38+
| no-import-assign | eslint ||
3839
| no-irregular-whitespace | eslint ||
3940
| no-loss-of-precision | eslint ||
4041
| no-new-native-nonconstructor | eslint ||
@@ -183,11 +184,11 @@ Code that can be written to run faster.
183184
| jsx-no-new-function-as-prop | react_perf | |
184185
| jsx-no-new-object-as-prop | react_perf | |
185186

186-
## Restriction (43):
187+
## Restriction (47):
187188

188189
Lints which prevent the use of language and library features. Must not be enabled as a whole, should be considered on a case-by-case basis before enabling.
189190
| Rule name | Source | Default |
190-
| ----------------------------- | ---------- | ------- |
191+
| --------------------------------------- | ---------- | ------- |
191192
| default-case | eslint | |
192193
| no-bitwise | eslint | |
193194
| no-console | eslint | |
@@ -213,12 +214,16 @@ Lints which prevent the use of language and library features. Must not be enable
213214
| no-async-await | oxc | |
214215
| no-barrel-file | oxc | |
215216
| no-const-enum | oxc | |
217+
| no-optional-chaining | oxc | |
216218
| no-rest-spread-properties | oxc | |
217219
| button-has-type | react | |
218220
| no-danger | react | |
219221
| no-unknown-property | react | |
220222
| explicit-function-return-type | typescript | |
221223
| no-explicit-any | typescript | |
224+
| no-import-type-side-effects | typescript | |
225+
| no-non-null-asserted-nullish-coalescing | typescript | |
226+
| no-non-null-assertion | typescript | |
222227
| no-var-requires | typescript | |
223228
| prefer-literal-enum-member | typescript | |
224229
| no-abusive-eslint-disable | unicorn | |
@@ -251,7 +256,7 @@ code that is most likely wrong or useless.
251256
| no-unnecessary-type-constraint | typescript | |
252257
| prefer-add-event-listener | unicorn | |
253258

254-
## Pedantic (63):
259+
## Pedantic (65):
255260

256261
Lints which are rather strict or have occasional false positives.
257262
| Rule name | Source | Default |
@@ -263,6 +268,7 @@ Lints which are rather strict or have occasional false positives.
263268
| no-array-constructor | eslint | |
264269
| no-case-declarations | eslint | |
265270
| no-constructor-return | eslint | |
271+
| no-fallthrough | eslint | |
266272
| no-inner-declarations | eslint | |
267273
| no-new-wrappers | eslint | |
268274
| no-prototype-builtins | eslint | |
@@ -271,6 +277,7 @@ Lints which are rather strict or have occasional false positives.
271277
| radix | eslint | |
272278
| require-await | eslint | |
273279
| symbol-description | eslint | |
280+
| max-dependencies | import | |
274281
| require-param | jsdoc | |
275282
| require-param-description | jsdoc | |
276283
| require-param-name | jsdoc | |
@@ -320,7 +327,7 @@ Lints which are rather strict or have occasional false positives.
320327
| prefer-type-error | unicorn | |
321328
| require-number-to-fixed-digits-argument | unicorn | |
322329

323-
## Style (75):
330+
## Style (77):
324331

325332
Code that should be written in a more idiomatic way.
326333
| Rule name | Source | Default |
@@ -358,6 +365,7 @@ Code that should be written in a more idiomatic way.
358365
| prefer-equality-matcher | jest | |
359366
| prefer-expect-resolves | jest | |
360367
| prefer-hooks-on-top | jest | |
368+
| prefer-jest-mocked | jest | |
361369
| prefer-lowercase-title | jest | |
362370
| prefer-mock-promise-shorthand | jest | |
363371
| prefer-spy-on | jest | |
@@ -368,6 +376,7 @@ Code that should be written in a more idiomatic way.
368376
| prefer-todo | jest | |
369377
| require-hook | jest | |
370378
| require-top-level-describe | jest | |
379+
| prefer-es-6-class | react | |
371380
| adjacent-overload-signatures | typescript | |
372381
| array-type | typescript | |
373382
| ban-tslint-comment | typescript | |
@@ -401,15 +410,13 @@ Code that should be written in a more idiomatic way.
401410
| text-encoding-identifier-case | unicorn | |
402411
| throw-new-error | unicorn | |
403412

404-
## Nursery (11):
413+
## Nursery (9):
405414

406415
New lints that are still under development.
407416
| Rule name | Source | Default |
408417
| --------------------------------- | ------------ | ------- |
409418
| constructor-super | eslint | |
410419
| getter-return | eslint | |
411-
| no-fallthrough | eslint | |
412-
| no-import-assign | eslint | |
413420
| no-undef | eslint | |
414421
| no-unreachable | eslint | |
415422
| no-useless-constructor | eslint | |

0 commit comments

Comments
 (0)