suspicious/useDeprecatedDate
suspicious · since 2.2.6
No autofix
biome.json
{
"linter": {
"rules": {
"suspicious": {
"useDeprecatedDate": "error"
}
}
}
}query {
member @deprecated(reason: "Use `members` instead") {
id
}
}query {
member @deprecated(reason: "Use `members` instead", deletionDate: "2099-12-25") {
id
}
}Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/useDeprecatedDate
suspicious · since 2.2.6
{
"linter": {
"rules": {
"suspicious": {
"useDeprecatedDate": "error"
}
}
}
}Enforce a consistent notation for the lightness of colors.
Detects a disposable object assigned to a variable without using or await using syntax.
Enforce a consistent notation for font weights.
Enforces the use of with { type: "json" } for JSON module imports.