Skip to main content

require-files

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

Example .npmpackagejsonlintrc configuration

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

Rule Details

Incorrect example(s)

{

}

Correct example(s)

{
"files": ["index.js"]
}

History

  • Introduced in version 1.0.0