Skip to main content

require-version

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"version": "1.0.0"
}

History

  • Renamed from version-required to require-version in version 1.0.0
  • Introduced in version 0.1.0