Skip to main content

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