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

@ -13,4 +13,4 @@ crx pack chrome -o 'chrome/hipchat-emoticons-for-all.crx' -p 'chrome/key.pem'
echo "Zipping Chrome Extension..."
cd chrome
zip 'release.zip' -1 -9 -T 'hipchat-emoticons-for-all.crx' 'manifest.json' 'data/*'
cd -
cd -

View file

@ -2,7 +2,6 @@
set -e
npm run lint
bash scripts/build-js.sh
bash scripts/distribute.sh
@ -10,4 +9,4 @@ cd firefox/
jpm run -b /usr/bin/firefox
echo "Exiting..."
cd -
cd -

View file

@ -4,4 +4,4 @@
{"github.com":"github.js"},
{"trello.com":"trello.js"}
]
}
}