💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule does the following checks on the value of the license property:
- It must be a
string - The value should be a valid SPDX license, "UNLICENSED", or a note referencing a license file (e.g. "SEE LICENSE IN LICENSE.md")
Example of incorrect code for this rule:
{
"license": "GPL3"
}Example of correct code for this rule:
{
"license": "GPL-3.0-only"
}See also: SPDX Documentation