Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 680 Bytes

homepage-type.md

File metadata and controls

52 lines (40 loc) · 680 Bytes
id title
homepage-type
homepage-type

Enabling this rule will result in an error being generated if the value in homepage is not a string.

Example .npmpackagejsonlintrc configuration

{
  "rules": {
    "homepage-type": "error"
  }
}

Rule Details

Incorrect example(s)

{
  "homepage": 1
}
{
  "homepage": ["https://github.com/tclindner/npm-package-json-lint"]
}
{
  "homepage": {
    "url": "https://github.com/tclindner/npm-package-json-lint"
  }
}

Correct example(s)

{
  "homepage": "https://github.com/tclindner/npm-package-json-lint"
}

History

  • Introduced in version 0.1.0