nursery/noRestrictedDependencies
nursery · since 2.5.0
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noRestrictedDependencies": "error"
}
}
}
}Disallow dependencies that are known to have better alternatives.
import glob from "globby";const glob = require("globby");const glob = await import("globby");import glob from "tinyglobby";const glob = require("tinyglobby");const glob = await import("tinyglobby");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.
nursery/noRestrictedDependencies
nursery · since 2.5.0
{
"linter": {
"rules": {
"nursery": {
"noRestrictedDependencies": "error"
}
}
}
}Disallow nesting a cascade layer inside a layer with the same name.
Disallow animation and transition times that are shorter than a configured minimum.