Skip to content

Commit 6bcc72e

Browse files
authored
Merge pull request #735 from SISheogorath/fix/jsonlint
Use jq instead of jsonlint
2 parents 298d3d6 + faa839e commit 6bcc72e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
- diff -q README.md README.md.orig
3333
language: generic
3434
- env: task=json-lint
35-
install: npm install jsonlint
35+
addons:
36+
apt:
37+
packages:
38+
- jq
3639
script:
3740
- npm run jsonlint
3841
language: generic

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "AGPL-3.0",
77
"scripts": {
88
"test": "npm run-script standard && npm run-script jsonlint",
9-
"jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' | while read json; do echo $json ; jsonlint -q $json; done",
9+
"jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' | while read json; do echo $json ; jq . $json; done",
1010
"standard": "node ./node_modules/standard/bin/cmd.js",
1111
"dev": "webpack --config webpack.config.js --progress --colors --watch",
1212
"build": "webpack --config webpack.production.js --progress --colors --bail",

0 commit comments

Comments
 (0)