Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update node api docs * Update cli docs * Add v4 migration guide * Bump deps for module and website * Add v4 docs * Add exception docs * Add v4 docs * Delete why.md
- Loading branch information
Showing
33 changed files
with
1,440 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
docs/rules/dependencies/prefer-no-version-zero-dependencies.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
id: prefer-no-version-zero-dependencies | ||
title: prefer-no-version-zero-dependencies | ||
--- | ||
|
||
Enabling this rule will result in an error being generated if one of the dependencies in `dependencies` has a major version of 0. | ||
|
||
## Example .npmpackagejsonlintrc configuration | ||
|
||
```json | ||
{ | ||
"rules": { | ||
"prefer-no-version-zero-dependencies": "error" | ||
} | ||
} | ||
``` | ||
|
||
With exceptions | ||
|
||
```json | ||
{ | ||
"rules": { | ||
"prefer-no-version-zero-dependencies": ["error", { | ||
"exceptions": ["myModule"] | ||
}] | ||
} | ||
} | ||
``` | ||
|
||
## Rule Details | ||
|
||
### *Incorrect* example(s) | ||
|
||
```json | ||
{ | ||
"devDependencies": { | ||
"grunt-npm-package-json-lint": "^0.3.0" | ||
} | ||
} | ||
``` | ||
|
||
### *Correct* example(s) | ||
|
||
```json | ||
{ | ||
"devDependencies": { | ||
"gulp-npm-package-json-lint": "^1.0.0" | ||
} | ||
} | ||
``` | ||
|
||
## History | ||
|
||
* Introduced in version 0.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.