Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 620 Bytes

require-repository.md

File metadata and controls

42 lines (31 loc) · 620 Bytes
id title
require-repository
require-repository

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
  "repository": {
    "type": "git",
    "url": "https://github.com/tclindner/npm-package-json-lint.git"
  }
}

History

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