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-assets": "env/bin/python3 assets/build-emoticons.py",
"build-data-files": "bash scripts/data-files.sh", "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", "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":"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/" "clean": "rm -rf firefox/data chrome/data node_modules/ build/ env/"
}, },
"repository": { "repository": {
@ -37,6 +38,7 @@
"less": "^2.4.0", "less": "^2.4.0",
"crx": "^3.0.3", "crx": "^3.0.3",
"jpm":"^1.0.1", "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" flake8 . --ignore=E128,E501 --exclude="node_modules,env"
npm test npm test

View file

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