Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 656 Bytes

File metadata and controls

28 lines (19 loc) · 656 Bytes

valid-license

💼 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