nursery/usePackageJsonValidLicense
nursery · since 2.6.8
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonValidLicense": "error"
}
}
}
}Require the license field in package.json to be a valid license.
{
"license": "GPL3"
}{
"license": { "type": "MIT" }
}{
"license": ""
}{
"license": "GPL-3.0-only"
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/usePackageJsonValidLicense
nursery · since 2.6.8
{
"linter": {
"rules": {
"nursery": {
"usePackageJsonValidLicense": "error"
}
}
}
}Enforce that the engines field in package.json is valid.
Enforce valid describe() callback.
Require the cpu field in package.json to be a valid list of processor types.
Prefer using the class prop as a classlist over the classnames helper.
Disallow an anonymous operation in a document with other operations.
Enforce that Qwik loader functions are declared in the correct location.