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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,14 @@ Run `node src/cli.js`
31
31
32
32
### JS
33
33
34
-
package json lint utilizes both JSHint and JSCS to enforce JavaScript standards. Please see the `.jshintrc` file for JSHint config and `.jscsrc` for JSCS config.
34
+
npm package json lint utilizes both JSHint and JSCS to enforce JavaScript standards. Please see the `.jshintrc` file for JSHint config and `.jscsrc` for JSCS config.
Run using the default config on a file relative to the current working directory
54
54
`pjl-cli -f "../relative-path/package.json"`
55
55
56
56
## Lint Rules
57
57
58
-
package json lint has a configurable set of rules. Each rule contains the following properties:
58
+
npm package json lint has a configurable set of rules. Each rule contains the following properties:
59
59
60
60
1. ID - example: author-required
61
61
2. Type - error or warning
62
62
3. Node - example: author
63
63
4. Message - example: author is required
64
64
5. Rule Type - example: required
65
65
66
-
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 package json lint with just this rule. The second is using `--rules-file` to specify a JSON file, named `.packagejsonlintrc`, to run a set of rules. If neither of the options above are specified then package json lint looks for a global `.packagejsonlintrc` file in the root of your user directory. Finally, if a global `.packagejsonlintrc` file doesn't exist then all rules are enabled by [default](src/defaultConfig.js).
66
+
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 package json lint with just this rule. The second is using `--rules-file` to specify a JSON file, named `.npmpackagejsonlintrc`, to run a set of rules. If neither of the options above are specified then package json lint looks for a global `.npmpackagejsonlintrc` file in the root of your user directory. Finally, if a global `.npmpackagejsonlintrc` file doesn't exist then all rules are enabled by [default](src/defaultConfig.js).
0 commit comments