Use `https://ty.dev/rules` when linking to the rules table (#18072)

This commit is contained in:
Micha Reiser 2025-05-13 19:21:06 +02:00 committed by GitHub
parent fe653de3dd
commit cfbb914100
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ respect-ignore-files = false
Configures the enabled rules and their severity. Configures the enabled rules and their severity.
See [the rules documentation](https://github.com/astral-sh/ty/blob/main/docs/rules.md) for a list of all available rules. See [the rules documentation](https://ty.dev/rules) for a list of all available rules.
Valid severities are: Valid severities are:

View File

@ -31,7 +31,7 @@ pub struct Options {
/// Configures the enabled rules and their severity. /// Configures the enabled rules and their severity.
/// ///
/// See [the rules documentation](https://github.com/astral-sh/ty/blob/main/docs/rules.md) for a list of all available rules. /// See [the rules documentation](https://ty.dev/rules) for a list of all available rules.
/// ///
/// Valid severities are: /// Valid severities are:
/// ///

View File

@ -22,7 +22,7 @@
] ]
}, },
"rules": { "rules": {
"description": "Configures the enabled rules and their severity.\n\nSee [the rules documentation](https://github.com/astral-sh/ty/blob/main/docs/rules.md) for a list of all available rules.\n\nValid severities are:\n\n* `ignore`: Disable the rule. * `warn`: Enable the rule and create a warning diagnostic. * `error`: Enable the rule and create an error diagnostic. ty will exit with a non-zero code if any error diagnostics are emitted.", "description": "Configures the enabled rules and their severity.\n\nSee [the rules documentation](https://ty.dev/rules) for a list of all available rules.\n\nValid severities are:\n\n* `ignore`: Disable the rule. * `warn`: Enable the rule and create a warning diagnostic. * `error`: Enable the rule and create an error diagnostic. ty will exit with a non-zero code if any error diagnostics are emitted.",
"anyOf": [ "anyOf": [
{ {
"$ref": "#/definitions/Rules" "$ref": "#/definitions/Rules"