Skip to main content

require-funding

Enabling this rule will result in an error being generated if funding is missing from the package.json file.

Example .npmpackagejsonlintrc configuration

{
"rules": {
"require-funding": "error"
}
}

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"funding": "https://github.com/ORG/REPO?sponsor=1"
}

History

  • Introduced in version 5.0.0