WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,10 @@ When set to true, rule will also report forEach callbacks that return a value.

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny array-callback-return
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -81,6 +77,10 @@ oxlint --deny array-callback-return
}
```

```bash [CLI]
oxlint --deny array-callback-return
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/arrow-body-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,10 @@ const bar = () => {

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny arrow-body-style
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -176,6 +172,10 @@ oxlint --deny arrow-body-style
}
```

```bash [CLI]
oxlint --deny arrow-body-style
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/block-scoped-var.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,10 @@ function doTry() {

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny block-scoped-var
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -123,6 +119,10 @@ oxlint --deny block-scoped-var
}
```

```bash [CLI]
oxlint --deny block-scoped-var
```

:::

## References
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,10 @@ Whether to ignore methods that are overridden.

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny class-methods-use-this
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -114,6 +110,10 @@ oxlint --deny class-methods-use-this
}
```

```bash [CLI]
oxlint --deny class-methods-use-this
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/constructor-super.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,10 @@ class C extends D {

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny constructor-super
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -93,6 +89,10 @@ oxlint --deny constructor-super
}
```

```bash [CLI]
oxlint --deny constructor-super
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/curly.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,10 @@ Which type of curly brace enforcement to use.

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny curly
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -272,6 +268,10 @@ oxlint --deny curly
}
```

```bash [CLI]
oxlint --deny curly
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/default-case-last.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,10 @@ switch (foo) {

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny default-case-last
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -99,6 +95,10 @@ oxlint --deny default-case-last
}
```

```bash [CLI]
oxlint --deny default-case-last
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/default-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,10 @@ switch (a) {

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny default-case
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -117,6 +113,10 @@ oxlint --deny default-case
}
```

```bash [CLI]
oxlint --deny default-case
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/default-param-last.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,10 @@ function combine(a: number, b?: number, c: number = 3) {}

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny default-param-last
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -87,6 +83,10 @@ oxlint --deny default-param-last
}
```

```bash [CLI]
oxlint --deny default-param-last
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/eqeqeq.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,10 @@ type: `"always" | "never" | "ignore"`

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny eqeqeq
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -190,6 +186,10 @@ oxlint --deny eqeqeq
}
```

```bash [CLI]
oxlint --deny eqeqeq
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/for-direction.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,10 @@ for (let i = MIN; i <= MAX; i -= 0) { // not increasing or decreasing

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny for-direction
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -91,6 +87,10 @@ oxlint --deny for-direction
}
```

```bash [CLI]
oxlint --deny for-direction
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/func-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,10 @@ const foo = bar(function* baz() {});

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny func-names
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -208,6 +204,10 @@ oxlint --deny func-names
}
```

```bash [CLI]
oxlint --deny func-names
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/func-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,10 @@ The style to enforce. Either "expression" (default) or "declaration".

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny func-style
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -198,6 +194,10 @@ oxlint --deny func-style
}
```

```bash [CLI]
oxlint --deny func-style
```

:::

## References
Expand Down
10 changes: 5 additions & 5 deletions src/docs/guide/usage/linter/rules/eslint/getter-return.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,10 @@ When set to `true`, allows getters to implicitly return `undefined` with a `retu

## How to use

To **enable** this rule in the CLI or using the config file, you can use:
To **enable** this rule using the config file or in the CLI, you can use:

::: code-group

```bash [CLI]
oxlint --deny getter-return
```

```json [Config (.oxlintrc.json)]
{
"rules": {
Expand All @@ -79,6 +75,10 @@ oxlint --deny getter-return
}
```

```bash [CLI]
oxlint --deny getter-return
```

:::

## References
Expand Down
Loading