Skip to main content

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