Skip to content

Commit 83037b8

Browse files
committed
docs: Describe usage of a negative pattern
1 parent 1bb3db0 commit 83037b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ or process all `.json` files in a directory:
7070

7171
By default, `jsonlint` will either report a syntax error with details or pretty-print the source if it is valid.
7272

73+
A more complex example: check all JSON files in a Node.js project, except for dependencies in `node_modules`, allow comments (CJSON) and trailing commas, forbid duplicated object keys, print processed files names on the console, print errors on a single line and if an error occurs, continue with other files:
74+
75+
jsonlint --comments --trailing-commas --no-duplicate-keys \
76+
--log-files --compact --continue '**/*.json' '!**/node_modules'
77+
7378
### Options
7479

7580
$ jsonlint -h

0 commit comments

Comments
 (0)