Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 462 Bytes

require-module.md

File metadata and controls

38 lines (27 loc) · 462 Bytes
id title
require-module
require-module

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
  "module": "src/NpmPackageJsonLint.js"
}

History

  • Introduced in version 2.11.0