no-file-devDependencies
Enabling this rule will result in an error being generated if one of the devDependencies in devDependencies
is url to local file.
Example .npmpackagejsonlintrc configuration
{
"rules": {
"no-file-devDependencies": "error"
}
}
With exceptions
{
"rules": {
"no-file-devDependencies": ["error", {
"exceptions": ["myModule"]
}]
}
}
Rule Details
Incorrect examples
{
"devDependencies": {
"my-module": "file:local-module"
}
}
Correct examples
{
"devDependencies": {
"gulp-npm-package-json-lint": "miripiruni/grunt-npm-package-json-lint"
}
}
Shorthand for disabling the rule in .npmpackagejsonlintrc configuration
{
"rules": {
"no-file-devDependencies": "off"
}
}
History
- Improved messaging when an invalid configuration is detected in version 6.2.0
- Introduced in version 4.3.0