Skip to content

Commit 9113996

Browse files
authored
V4.4.0 (#177)
* Bump version and add docs * Test node 13
1 parent cc1926a commit 9113996

File tree

5 files changed

+109
-2
lines changed

5 files changed

+109
-2
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ jobs:
4646
- attach_workspace:
4747
at: ~/
4848
- run: npm run test:ci
49+
test-node13:
50+
docker:
51+
- image: circleci/node:13
52+
steps:
53+
- attach_workspace:
54+
at: ~/
55+
- run: npm run test:ci
4956
publish-beta:
5057
docker:
5158
- image: circleci/node:10
@@ -109,13 +116,20 @@ workflows:
109116
filters:
110117
tags:
111118
only: /.*/
119+
- test-node13:
120+
requires:
121+
- build
122+
filters:
123+
tags:
124+
only: /.*/
112125
- publish-beta:
113126
requires:
114127
- test-node8
115128
- test-node9
116129
- test-node10
117130
- test-node11
118131
- test-node12
132+
- test-node13
119133
filters:
120134
tags:
121135
only: /^v\d*\.\d*\.\d*-beta\.\d*$/
@@ -129,6 +143,7 @@ workflows:
129143
- test-node10
130144
- test-node11
131145
- test-node12
146+
- test-node13
132147
filters:
133148
tags:
134149
only: /^v\d*\.\d*\.\d*$/

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-package-json-lint",
3-
"version": "4.3.0",
3+
"version": "4.4.0",
44
"description": "Configurable linter for package.json files.",
55
"keywords": [
66
"lint",
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
id: version-4.4.0-cli
3+
title: CLI
4+
original_id: cli
5+
---
6+
7+
Run npm-package-json-lint through the CLI with this script.
8+
9+
```bash
10+
npmPkgJsonLint [opts] [fileGlobPatterns ...]
11+
```
12+
13+
npm-package-json-lint ignores files located in `node_modules` directory.
14+
15+
### Examples
16+
17+
```bash
18+
$ npmPkgJsonLint .
19+
```
20+
21+
> Looks for all `package.json` files in the project. The CLI engine automatically looks for relevant config files for each package.json file that is found.
22+
23+
```bash
24+
$ npmPkgJsonLint ./packages
25+
```
26+
27+
> Looks for all `package.json` files in the `packages` directory. The CLI engine automatically looks for relevant config files for each package.json file that is found.
28+
29+
```bash
30+
$ npmPkgJsonLint ./package1 ./package2
31+
```
32+
33+
> Looks for all `package.json` files in the `package1` and `package2` directories. The CLI engine automatically looks for relevant config files for each package.json file that is found.
34+
35+
## `--configFile <file path>` (alias `-c`)
36+
37+
File path to local config file or module name. Please see [configuration](configuration.md) for more details.
38+
39+
### Examples
40+
41+
```bash
42+
$ npmPkgJsonLint -c ./config/.npmpackagejsonlintrc.json .
43+
```
44+
45+
> Looks for all `package.json` files in the project. The CLI engine automatically looks for relevant config files for each package.json file that is found. The CLI also merges the config found in `./config/.npmpackagejsonlintrc.json`
46+
47+
```bash
48+
$ npmPkgJsonLint --configFile ./config/npmpackagejsonlint.config.json .
49+
```
50+
51+
## `--quiet` (alias `-q`)
52+
53+
Report errors only.
54+
55+
### Examples
56+
57+
```bash
58+
$ npmPkgJsonLint -q .
59+
```
60+
61+
> Looks for all `package.json` files in the project. The CLI engine automatically looks for relevant config files for each package.json file that is found. Removes any warnings from the output.
62+
63+
```bash
64+
$ npmPkgJsonLint --quiet ./packages
65+
```
66+
67+
> Looks for all `package.json` files in the `packages` directory. The CLI engine automatically looks for relevant config files for each package.json file that is found. Removes any warnings from the output using the long form for quieting output.
68+
69+
## `--noConfigFiles` (alias `-ncf`)
70+
71+
Skips loading project config files (i.e. .npmpackagejsonlintrc.json and npmpackagejsonlint.config.js).
72+
73+
## `--ignorePath` (alias `-i`)
74+
75+
Path to a file containing patterns that describe files to ignore. By default, npm-package-json-lint looks for `./.npmpackagejsonlintignore`.
76+
77+
### Examples
78+
79+
```bash
80+
$ npmPkgJsonLint . --ignorePath .gitignore
81+
```
82+
83+
> Looks for all `package.json` files in the project and exclude ignored paths. The CLI engine automatically looks for relevant config files for each package.json file that is found.
84+
85+
## `--maxWarnings` (alias `-mw`)
86+
87+
Max number of warnings that are allowed before an error is thrown. By default, npm-package-json-lint allows `10000000`.
88+
89+
## `--allowEmptyTargets`
90+
91+
Do not throw an error when a list of targets is empty.

website/versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
"4.4.0",
23
"4.3.0",
34
"4.2.0",
45
"4.1.1",

0 commit comments

Comments
 (0)