Skip to content

Commit

Permalink
Release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 27, 2024
1 parent cd0f4ad commit 9376da1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
4 changes: 4 additions & 0 deletions src/docs/guide/usage/linter/generated-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Arguments:
Enable the experimental jsdoc plugin and detect JSDoc problems
- **` --jest-plugin`** —
Enable the Jest plugin and detect test problems
- **` --vitest-plugin`** —
Enable the Vitest plugin and detect test problems
- **` --jsx-a11y-plugin`** —
Enable the JSX-a11y plugin and detect accessibility problems
- **` --nextjs-plugin`** —
Expand Down Expand Up @@ -113,5 +115,7 @@ Arguments:
list all the rules that are currently registered
- **`-h`**, **`--help`** —
Prints help information
- **`-V`**, **`--version`** —
Prints version information

<!-- textlint-enable -->
27 changes: 17 additions & 10 deletions src/docs/guide/usage/linter/generated-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

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

- Total number of rules: 369
- Rules turned on by default: 90
- Total number of rules: 376
- Rules turned on by default: 91

<!-- textlint-disable terminology -->

## Correctness (158):
## Correctness (159):

Code that is outright wrong or useless.
| Rule name | Source | Default |
Expand Down Expand Up @@ -35,6 +35,7 @@ Code that is outright wrong or useless.
| no-extra-boolean-cast | eslint ||
| no-func-assign | eslint ||
| no-global-assign | eslint ||
| no-import-assign | eslint ||
| no-irregular-whitespace | eslint ||
| no-loss-of-precision | eslint ||
| no-new-native-nonconstructor | eslint ||
Expand Down Expand Up @@ -183,11 +184,11 @@ Code that can be written to run faster.
| jsx-no-new-function-as-prop | react_perf | |
| jsx-no-new-object-as-prop | react_perf | |

## Restriction (43):
## Restriction (47):

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.
| Rule name | Source | Default |
| ----------------------------- | ---------- | ------- |
| --------------------------------------- | ---------- | ------- |
| default-case | eslint | |
| no-bitwise | eslint | |
| no-console | eslint | |
Expand All @@ -213,12 +214,16 @@ Lints which prevent the use of language and library features. Must not be enable
| no-async-await | oxc | |
| no-barrel-file | oxc | |
| no-const-enum | oxc | |
| no-optional-chaining | oxc | |
| no-rest-spread-properties | oxc | |
| button-has-type | react | |
| no-danger | react | |
| no-unknown-property | react | |
| explicit-function-return-type | typescript | |
| no-explicit-any | typescript | |
| no-import-type-side-effects | typescript | |
| no-non-null-asserted-nullish-coalescing | typescript | |
| no-non-null-assertion | typescript | |
| no-var-requires | typescript | |
| prefer-literal-enum-member | typescript | |
| no-abusive-eslint-disable | unicorn | |
Expand Down Expand Up @@ -251,7 +256,7 @@ code that is most likely wrong or useless.
| no-unnecessary-type-constraint | typescript | |
| prefer-add-event-listener | unicorn | |

## Pedantic (63):
## Pedantic (65):

Lints which are rather strict or have occasional false positives.
| Rule name | Source | Default |
Expand All @@ -263,6 +268,7 @@ Lints which are rather strict or have occasional false positives.
| no-array-constructor | eslint | |
| no-case-declarations | eslint | |
| no-constructor-return | eslint | |
| no-fallthrough | eslint | |
| no-inner-declarations | eslint | |
| no-new-wrappers | eslint | |
| no-prototype-builtins | eslint | |
Expand All @@ -271,6 +277,7 @@ Lints which are rather strict or have occasional false positives.
| radix | eslint | |
| require-await | eslint | |
| symbol-description | eslint | |
| max-dependencies | import | |
| require-param | jsdoc | |
| require-param-description | jsdoc | |
| require-param-name | jsdoc | |
Expand Down Expand Up @@ -320,7 +327,7 @@ Lints which are rather strict or have occasional false positives.
| prefer-type-error | unicorn | |
| require-number-to-fixed-digits-argument | unicorn | |

## Style (75):
## Style (77):

Code that should be written in a more idiomatic way.
| Rule name | Source | Default |
Expand Down Expand Up @@ -358,6 +365,7 @@ Code that should be written in a more idiomatic way.
| prefer-equality-matcher | jest | |
| prefer-expect-resolves | jest | |
| prefer-hooks-on-top | jest | |
| prefer-jest-mocked | jest | |
| prefer-lowercase-title | jest | |
| prefer-mock-promise-shorthand | jest | |
| prefer-spy-on | jest | |
Expand All @@ -368,6 +376,7 @@ Code that should be written in a more idiomatic way.
| prefer-todo | jest | |
| require-hook | jest | |
| require-top-level-describe | jest | |
| prefer-es-6-class | react | |
| adjacent-overload-signatures | typescript | |
| array-type | typescript | |
| ban-tslint-comment | typescript | |
Expand Down Expand Up @@ -401,15 +410,13 @@ Code that should be written in a more idiomatic way.
| text-encoding-identifier-case | unicorn | |
| throw-new-error | unicorn | |

## Nursery (11):
## Nursery (9):

New lints that are still under development.
| Rule name | Source | Default |
| --------------------------------- | ------------ | ------- |
| constructor-super | eslint | |
| getter-return | eslint | |
| no-fallthrough | eslint | |
| no-import-assign | eslint | |
| no-undef | eslint | |
| no-unreachable | eslint | |
| no-useless-constructor | eslint | |
Expand Down

0 comments on commit 9376da1

Please sign in to comment.