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
> 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.
101
102
103
+
```bash
104
+
$ npmPkgJsonLint . --ignorePath .gitignore
105
+
```
106
+
107
+
> 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.
108
+
102
109
## Node.js API
103
110
104
111
npm-package-json-lint exports two main objects: `CLIEngine` and `NpmPackageJsonLint`.
*`configFile` {string} Name of module/file to use.
181
188
*`cwd` {string} The current working diretory for all file operations.
182
189
*`useConfigFiles` {boolean} False disables use of .npmpackagejsonlintrc.json files and npmpackagejsonlint.config.js files.
183
-
*`rules` {object} An object of rules to use.
190
+
*`ignorePath` {string} Path to a file containing patterns that describe files to ignore. The path can be absolute or relative to process.cwd(). By default, npm-package-json-lint looks for .npmpackagejsonlintignore in process.cwd().
Copy file name to clipboardExpand all lines: src/cli.js
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ const cli = meow(`
24
24
--quiet, -q Report errors only
25
25
--noConfigFiles, -ncf Disables use of .npmpackagejsonlintrc.json files, npmpackagejsonlint.config.js files, and npmPackageJsonLintConfig object in package.json file.
26
26
--configFile, -c File path of .npmpackagejsonlintrc.json
27
+
--ignorePath, -i Path to a file containing patterns that describe files to ignore. The path can be absolute or relative to process.cwd(). By default, npm-package-json-lint looks for .npmpackagejsonlintignore in process.cwd().
0 commit comments