Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #145

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 -->
29 changes: 18 additions & 11 deletions src/docs/guide/usage/linter/generated-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

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: 93

<!-- textlint-disable terminology -->

## Correctness (158):
## Correctness (161):

Code that is outright wrong or useless.
| Rule name | Source | Default |
| --------------------------------------------- | ---------- | ------- |
| for-direction | eslint | ✅ |
| getter-return | eslint | ✅ |
| no-async-promise-executor | eslint | ✅ |
| no-caller | eslint | ✅ |
| no-class-assign | eslint | ✅ |
Expand All @@ -33,8 +34,10 @@ Code that is outright wrong or useless.
| no-empty-static-block | eslint | ✅ |
| no-ex-assign | eslint | ✅ |
| no-extra-boolean-cast | eslint | ✅ |
| no-fallthrough | 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 +186,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 +216,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 +258,7 @@ code that is most likely wrong or useless.
| no-unnecessary-type-constraint | typescript | |
| prefer-add-event-listener | unicorn | |

## Pedantic (63):
## Pedantic (64):

Lints which are rather strict or have occasional false positives.
| Rule name | Source | Default |
Expand All @@ -271,6 +278,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 +328,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 +366,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 +377,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 +411,12 @@ Code that should be written in a more idiomatic way.
| text-encoding-identifier-case | unicorn | |
| throw-new-error | unicorn | |

## Nursery (11):
## Nursery (8):

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