Skip to content

Commit 2a7f562

Browse files
authored
Release 1.27.0 (#618)
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
1 parent b77cb42 commit 2a7f562

26 files changed

+47
-38
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
search: false
3+
---
4+
15
## Usage
26

37
**`oxlint`** \[**`-c`**=_`<./.oxlintrc.json>`_\] \[_`PATH`_\]...
@@ -14,7 +18,7 @@
1418
If not provided, Oxlint will look for `.oxlintrc.json` in the current working directory.
1519

1620
- **`--tsconfig`**=_`<./tsconfig.json>`_ &mdash;
17-
TypeScript `tsconfig.json` path for reading path alias and project references for import plugin
21+
TypeScript `tsconfig.json` path for reading path alias and project references for import plugin. If not provided, will look for `tsconfig.json` in the current working directory.
1822
- **`--init`** &mdash;
1923
Initialize oxlint configuration with default values
2024

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
search: false
3+
---
4+
15
# Oxlint Configuration File
26

37
This configuration is aligned with ESLint v8's configuration schema (`eslintrc.json`).

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
search: false
3+
---
4+
15
# Rules
26

37
The progress of all rule implementations is tracked [here](https://github.com/oxc-project/oxc/issues/481).
@@ -516,7 +520,7 @@ Code that should be written in a more idiomatic way.
516520
| [no-new-func](/docs/guide/usage/linter/rules/eslint/no-new-func.html) | eslint | | |
517521
| [no-return-assign](/docs/guide/usage/linter/rules/eslint/no-return-assign.html) | eslint | | 🚧 |
518522
| [no-script-url](/docs/guide/usage/linter/rules/eslint/no-script-url.html) | eslint | | |
519-
| [no-template-curly-in-string](/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.html) | eslint | | ⚠️🛠️️ |
523+
| [no-template-curly-in-string](/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.html) | eslint | | |
520524
| [no-ternary](/docs/guide/usage/linter/rules/eslint/no-ternary.html) | eslint | | |
521525
| [no-useless-computed-key](/docs/guide/usage/linter/rules/eslint/no-useless-computed-key.html) | eslint | | 🚧 |
522526
| [operator-assignment](/docs/guide/usage/linter/rules/eslint/operator-assignment.html) | eslint | | ⚠️🛠️️ |

src/docs/guide/usage/linter/rules/eslint/no-compare-neg-zero.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ const source = `https://github.com/oxc-project/oxc/blob/${ data }/crates/oxc_lin
1818

1919
### What it does
2020

21-
Disallow comparing against -0
21+
Disallow comparing against `-0`
2222

2323
### Why is this bad?
2424

25-
The rule should warn against code that tries to compare against -0,
26-
since that will not work as intended. That is, code like x === -0 will
27-
pass for both +0 and -0. The author probably intended Object.is(x, -0).
25+
The rule should warn against code that tries to compare against `-0`,
26+
since that will not work as intended. That is, code like `x === -0` will
27+
pass for both `+0` and `-0`. The author probably intended `Object.is(x, -0)`.
2828

2929
### Examples
3030

src/docs/guide/usage/linter/rules/eslint/no-extra-boolean-cast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This rule disallows unnecessary boolean casts.
2323
### Why is this bad?
2424

2525
In contexts such as an if statement's test where the result of the expression will already be coerced to a Boolean,
26-
casting to a Boolean via double negation (!!) or a Boolean call is unnecessary.
26+
casting to a Boolean via double negation (`!!`) or a `Boolean` call is unnecessary.
2727

2828
### Examples
2929

src/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ const source = `https://github.com/oxc-project/oxc/blob/${ data }/crates/oxc_lin
88
# eslint/no-template-curly-in-string <Badge type="info" text="Style" />
99

1010
<div class="rule-meta">
11-
<Alert class="fix" type="info">
12-
<span class="emoji">⚠️🛠️️</span> A dangerous auto-fix is available for this rule.
13-
</Alert>
1411
</div>
1512

1613
### What it does

src/docs/guide/usage/linter/rules/eslint/no-this-before-super.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Requires calling `super()` before using `this` or `super`.
1919

2020
### Why is this bad?
2121

22-
Getters should always return a value.
23-
If they don't, it's probably a mistake.
22+
In the constructor of derived classes, if `this`/`super` are used before `super()` calls,
23+
it raises a ReferenceError.
2424

2525
### Examples
2626

src/docs/guide/usage/linter/rules/eslint/no-unsafe-optional-chaining.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Disallow use of optional chaining in contexts where the undefined value is not a
1919

2020
### Why is this bad?
2121

22-
The optional chaining (?.) expression can short-circuit with a return value of undefined.
22+
The optional chaining (`?.`) expression can short-circuit with a return value of undefined.
2323
Therefore, treating an evaluated optional chaining expression as a function, object, number, etc.,
2424
can cause TypeError or unexpected results. For example:
2525

src/docs/guide/usage/linter/rules/eslint/no-unused-vars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ is used or unused in a Vue file.
8080

8181
The original ESLint rule recognizes `/* exported variableName */`
8282
comments as a way to indicate that a variable is used in another script
83-
and should not be considered unused. Since ES6 modules are now a TC39
83+
and should not be considered unused. Since ES modules are now a TC39
8484
standard, Oxlint does not support this feature.
8585

8686
### Examples
@@ -177,7 +177,7 @@ Examples of **incorrect** code for `/* exported variableName */` operation:
177177
```js
178178
/* exported global_var */
179179

180-
// Not respected, use ES6 modules instead.
180+
// Not respected, use ES modules instead.
181181
var global_var = 42;
182182
```
183183

src/docs/guide/usage/linter/rules/eslint/no-var.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ const source = `https://github.com/oxc-project/oxc/blob/${ data }/crates/oxc_lin
1515

1616
### What it does
1717

18-
ECMAScript 6 allows programmers to create variables with block scope
18+
ECMAScript 2015 allows programmers to create variables with block scope
1919
instead of function scope using the `let` and `const` keywords. Block
2020
scope is common in many other programming languages and helps
2121
programmers avoid mistakes.
2222

2323
### Why is this bad?
2424

25-
Using `var` in an es6 environment triggers this error
25+
Using `var` in an ES2015 environment triggers this error
2626

2727
### Examples
2828

0 commit comments

Comments
 (0)