1
Fork 0

Added JSON linting

This commit is contained in:
Jake Howard 2015-10-07 17:39:32 +01:00
parent 3a2d4fd4e4
commit 858f680ce5
5 changed files with 7 additions and 7 deletions

View File

@ -12,8 +12,9 @@
"build-assets": "env/bin/python3 assets/build-emoticons.py",
"build-data-files": "bash scripts/data-files.sh",
"build": "npm run create-dirs && npm run build-assets && npm run develop && npm run build-data-files",
"test":"npm run lint",
"test":"npm run lint && npm run lint-json",
"lint":"eslint -c node_modules/eslint-config/.eslintrc 'src/injections/' 'src/global.js'",
"lint-json": "jsonlint -q src/decoder.json",
"clean": "rm -rf firefox/data chrome/data node_modules/ build/ env/"
},
"repository": {
@ -37,6 +38,7 @@
"less": "^2.4.0",
"crx": "^3.0.3",
"jpm":"^1.0.1",
"uglify-js":"^2.4.24"
"uglify-js":"^2.4.24",
"jsonlint": "^1.6.2"
}
}

View File

@ -7,4 +7,3 @@ export PATH=env/bin:${PATH}
flake8 . --ignore=E128,E501 --exclude="node_modules,env"
npm test

View File

@ -2,7 +2,6 @@
set -e
npm run lint
bash scripts/build-js.sh
bash scripts/distribute.sh