Skip to content

Commit f70d2df

Browse files
Add jsonlint script to ensure all json files are valid
1 parent 53c2d0b commit f70d2df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "app.js",
66
"license": "MIT",
77
"scripts": {
8-
"test": "npm run-script standard",
8+
"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",
910
"standard": "node ./node_modules/standard/bin/cmd.js",
1011
"dev": "webpack --config webpack.config.js --progress --colors --watch",
1112
"build": "webpack --config webpack.production.js --progress --colors --bail",
@@ -159,6 +160,7 @@
159160
"html-webpack-plugin": "^2.25.0",
160161
"imports-loader": "^0.7.0",
161162
"json-loader": "^0.5.4",
163+
"jsonlint": "^1.6.2",
162164
"less": "^2.7.1",
163165
"less-loader": "^2.2.3",
164166
"optimize-css-assets-webpack-plugin": "^1.3.0",

0 commit comments

Comments
 (0)