Skip to content

Commit cc5aaa1

Browse files
committed
chore: cleanup jsonlint output, only show filename and error
Signed-off-by: BoHong Li <[email protected]>
1 parent 6b549d3 commit cc5aaa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"dev": "webpack --config webpack.dev.js --progress --colors --watch",
2020
"doctoc": "doctoc --title='# Table of Contents' README.md",
2121
"lint": "standard",
22-
"jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done",
22+
"jsonlint": "find . -type f -not -ipath \"./node_modules/*\" \\( -name \"*.json\" -o -name \"*.json.*\" \\) | xargs -n 1 -I{} -- bash -c 'echo {}; jq . {} > /dev/null;'",
2323
"start": "sequelize db:migrate && node app.js",
2424
"mocha": "mocha --require intelli-espower-loader --exit ./test --recursive",
2525
"coverage": "nyc mocha --require intelli-espower-loader --exit --recursive ./test",

0 commit comments

Comments
 (0)