You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add node 7 to travis build list
* Alter coverage check to exclude require method
* Remove grunt watch, bump deps, and move to 2.0.0
* Add extends support and add new severity cli option
* Remove default config
* Update docs and changelog
* Remove reference to old default config
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
11
11
12
12
### Removed
13
13
14
+
## [2.0.0] - 2017-02-18
15
+
### Added
16
+
- Support configuration extension!! Now you can add "extends" to your rc file to extend a based configuration. This is great for sharing a standard ruleset between many projects. Please see the [wiki](https://github.com/tclindner/npm-package-json-lint/wiki) for more information.
17
+
- An optional cli flag for controlling rule severity. Please see the [README.md](README.md) for examples.
18
+
19
+
### Removed
20
+
- Default configuration is no longer provided. Please see the new default config module, [npm-package-json-lint-config-default](https://github.com/tclindner/npm-package-json-lint-config-default)
21
+
14
22
## [1.4.0] - 2016-10-15
15
23
### Added
16
24
- New rule: [valid-values-license](https://github.com/tclindner/npm-package-json-lint/wiki/valid-values-license)
@@ -66,7 +69,7 @@ Run using the default config on a file relative to the current working directory
66
69
67
70
## Lint Rules
68
71
69
-
npm-package-json-lint has a configurable set of rules. Please see the [wiki](https://github.com/tclindner/npm-package-json-lint/wiki) for a full list of available rules. By [default](src/defaultConfig.js) only type checks and name/version rules are enforced. This is the bare minimum configuration.
72
+
npm-package-json-lint has a configurable set of rules. Please see the [wiki](https://github.com/tclindner/npm-package-json-lint/wiki) for a full list of available rules. By default no rules are enabled. If you would like to use npm-package-json-lint's default ruleset, please see [npm-package-json-lint-config-default](https://github.com/tclindner/npm-package-json-lint-config-default).
70
73
71
74
Each rule contains the following properties:
72
75
@@ -75,17 +78,22 @@ Each rule contains the following properties:
75
78
3. Message - example: author is required
76
79
4. Rule Type - example: required
77
80
78
-
As mentioned in the "Commands and configuration" section there are two ways to specify rule sets. The first is using `--rule` to specify a given rule. This will run npm-package-json-lint with just this rule. The second is using `--rules-file` to specify a JSON file, named [`.npmpackagejsonlintrc`](https://github.com/tclindner/npm-package-json-lint/wiki/npm-package-json-lint-rc), to run a set of rules. If neither of the options above are specified then npm-package-json-lint looks for a global [`.npmpackagejsonlintrc`](https://github.com/tclindner/npm-package-json-lint/wiki/npm-package-json-lint-rc) file in the root of your user directory. Finally, if a global [`.npmpackagejsonlintrc`](https://github.com/tclindner/npm-package-json-lint/wiki/npm-package-json-lint-rc) file doesn't exist then the [defaults](src/defaultConfig.js) are used.
81
+
As mentioned in the "Commands and configuration" section there are two ways to specify rule sets. The first is using `--rule` to specify a given rule. This will run npm-package-json-lint with just this rule. The second is using `--rules-file` to specify a JSON file, named [`.npmpackagejsonlintrc`](https://github.com/tclindner/npm-package-json-lint/wiki/npm-package-json-lint-rc), to run a set of rules. If neither of the options above are specified then npm-package-json-lint looks for a global [`.npmpackagejsonlintrc`](https://github.com/tclindner/npm-package-json-lint/wiki/npm-package-json-lint-rc) file in the root of your user directory.
79
82
80
83
### Configuring rules
81
84
82
-
npm-package-json-lint rules can either be run as an `error`or a `warning`.
85
+
npm-package-json-lint rules can either be run as an `error`, `warning`, or `off`.
83
86
84
87
* "warning" - run the rule as a warning
85
88
* "error" - run the rule as an error
89
+
* "off" - disables the rule
86
90
87
91
Ex: `"require-author": "error"`
88
92
93
+
## Migrating from v10.x.x to 2.x.x
94
+
95
+
Please see the [migration guide](https://github.com/tclindner/npm-package-json-lint/wiki/migrating-from-v1-to-v2).
96
+
89
97
## Migrating from v0.x.x to 1.x.x
90
98
91
99
Please see the [migration guide](https://github.com/tclindner/npm-package-json-lint/wiki/migrating-from-v0-to-v1).
@@ -101,6 +109,7 @@ Please see [CHANGELOG.md](CHANGELOG.md).
101
109
## Related
102
110
103
111
*[grunt-npm-package-json-lint](https://github.com/tclindner/grunt-npm-package-json-lint): Grunt Wrapper for npm-package-json-lint
112
+
*[npm-package-json-lint-config-default](https://github.com/tclindner/npm-package-json-lint-config-default): Shared default configuration module for npm-package-json-lint
0 commit comments