Skip to content

Commit 160e423

Browse files
committed
docs(linter): Add a note that the typeAware and typeCheck options require oxlint-tsgolint (#19940)
Just making sure that that is clear for users.
1 parent 0337c6d commit 160e423

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

apps/oxlint/src-js/package/config.generated.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,16 @@ export interface OxlintOptions {
328328
* Enable rules that require type information.
329329
*
330330
* Equivalent to passing `--type-aware` on the CLI.
331+
*
332+
* Note that this requires the `oxlint-tsgolint` package to be installed.
331333
*/
332334
typeAware?: boolean | null;
333335
/**
334336
* Enable experimental type checking (includes TypeScript compiler diagnostics).
335337
*
336338
* Equivalent to passing `--type-check` on the CLI.
339+
*
340+
* Note that this requires the `oxlint-tsgolint` package to be installed.
337341
*/
338342
typeCheck?: boolean | null;
339343
}

crates/oxc_linter/src/config/oxlintrc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ pub struct OxlintOptions {
2929
/// Enable rules that require type information.
3030
///
3131
/// Equivalent to passing `--type-aware` on the CLI.
32+
///
33+
/// Note that this requires the `oxlint-tsgolint` package to be installed.
3234
#[serde(skip_serializing_if = "Option::is_none")]
3335
pub type_aware: Option<bool>,
3436
/// Enable experimental type checking (includes TypeScript compiler diagnostics).
3537
///
3638
/// Equivalent to passing `--type-check` on the CLI.
39+
///
40+
/// Note that this requires the `oxlint-tsgolint` package to be installed.
3741
#[serde(skip_serializing_if = "Option::is_none")]
3842
pub type_check: Option<bool>,
3943
/// Ensure warnings produce a non-zero exit code.

npm/oxlint/configuration_schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,20 +513,20 @@
513513
"markdownDescription": "Specify a warning threshold. Exits with an error status if warnings exceed this value.\n\nEquivalent to passing `--max-warnings` on the CLI."
514514
},
515515
"typeAware": {
516-
"description": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.",
516+
"description": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
517517
"type": [
518518
"boolean",
519519
"null"
520520
],
521-
"markdownDescription": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI."
521+
"markdownDescription": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed."
522522
},
523523
"typeCheck": {
524-
"description": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.",
524+
"description": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
525525
"type": [
526526
"boolean",
527527
"null"
528528
],
529-
"markdownDescription": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI."
529+
"markdownDescription": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed."
530530
}
531531
},
532532
"additionalProperties": false,

tasks/website_linter/src/snapshots/schema_json.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,20 +517,20 @@ expression: json
517517
"markdownDescription": "Specify a warning threshold. Exits with an error status if warnings exceed this value.\n\nEquivalent to passing `--max-warnings` on the CLI."
518518
},
519519
"typeAware": {
520-
"description": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.",
520+
"description": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
521521
"type": [
522522
"boolean",
523523
"null"
524524
],
525-
"markdownDescription": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI."
525+
"markdownDescription": "Enable rules that require type information.\n\nEquivalent to passing `--type-aware` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed."
526526
},
527527
"typeCheck": {
528-
"description": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.",
528+
"description": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed.",
529529
"type": [
530530
"boolean",
531531
"null"
532532
],
533-
"markdownDescription": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI."
533+
"markdownDescription": "Enable experimental type checking (includes TypeScript compiler diagnostics).\n\nEquivalent to passing `--type-check` on the CLI.\n\nNote that this requires the `oxlint-tsgolint` package to be installed."
534534
}
535535
},
536536
"additionalProperties": false,

tasks/website_linter/src/snapshots/schema_markdown.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ Enable rules that require type information.
333333

334334
Equivalent to passing `--type-aware` on the CLI.
335335

336+
Note that this requires the `oxlint-tsgolint` package to be installed.
337+
336338

337339
### options.typeCheck
338340

@@ -343,6 +345,8 @@ Enable experimental type checking (includes TypeScript compiler diagnostics).
343345

344346
Equivalent to passing `--type-check` on the CLI.
345347

348+
Note that this requires the `oxlint-tsgolint` package to be installed.
349+
346350

347351
## overrides
348352

0 commit comments

Comments
 (0)