Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 775 Bytes

bundledDependencies-type.md

File metadata and controls

53 lines (41 loc) · 775 Bytes
id title
bundledDependencies-type
bundledDependencies-type

Enabling this rule will result in an error being generated if the value in bundledDependencies is not an object.

Example .npmpackagejsonlintrc configuration

{
  "rules": {
    "bundledDependencies-type": "error"
  }
}

Rule Details

Incorrect example(s)

{
  "bundledDependencies": 1
}
{
  "bundledDependencies": {
    "npm-package-json-lint": "^0.3.0"
  }
}
{
  "bundledDependencies": "npm-package-json-lint"
}

Correct example(s)

{
  "bundledDependencies": ["npm-package-json-lint"]
}

History

  • Fixed a bug in version 2.12.2. Updated type to check for an array instead of an object.
  • Introduced in version 1.0.0