CB-8410 Enable jshint for Android platform

This commit is contained in:
Murat Sutunc 2015-02-03 11:30:12 -08:00 committed by Andrew Grieve
parent fb8e35bb44
commit d0ade1d190
4 changed files with 27 additions and 2 deletions

2
.jshintignore Normal file
View File

@ -0,0 +1,2 @@
bin/node_modules/*
bin/templates/project/*

10
.jshintrc Normal file
View File

@ -0,0 +1,10 @@
{
"node": true
, "bitwise": true
, "undef": true
, "trailing": true
, "quotmark": true
, "indent": 4
, "unused": "vars"
, "latedef": "nofunc"
}

View File

@ -13,8 +13,9 @@
"apache" "apache"
], ],
"scripts": { "scripts": {
"test": "jasmine-node --color spec", "test": "npm run jshint && jasmine-node --color spec",
"test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app 応用 && \"./test create/cordova/build\" && rm -rf \"test create\"" "test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app 応用 && \"./test create/cordova/build\" && rm -rf \"test create\"",
"jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
}, },
"author": "Apache Software Foundation", "author": "Apache Software Foundation",
"license": "Apache version 2.0", "license": "Apache version 2.0",
@ -25,6 +26,7 @@
}, },
"devDependencies": { "devDependencies": {
"jasmine-node": "~1", "jasmine-node": "~1",
"jshint": "^2.6.0",
"promise-matchers": "~0" "promise-matchers": "~0"
} }
} }

11
spec/.jshintrc Normal file
View File

@ -0,0 +1,11 @@
{
"node": true
, "bitwise": true
, "undef": true
, "trailing": true
, "quotmark": true
, "indent": 4
, "unused": "vars"
, "latedef": "nofunc"
, "jasmine": true
}