Skip to content

Commit

Permalink
CB-8410 Enable jshint for Android platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Murat Sutunc authored and agrieve committed Feb 3, 2015
1 parent fb8e35b commit d0ade1d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin/node_modules/*
bin/templates/project/*
10 changes: 10 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"node": true
, "bitwise": true
, "undef": true
, "trailing": true
, "quotmark": true
, "indent": 4
, "unused": "vars"
, "latedef": "nofunc"
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"apache"
],
"scripts": {
"test": "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": "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\"",
"jshint": "node node_modules/jshint/bin/jshint bin && node node_modules/jshint/bin/jshint spec"
},
"author": "Apache Software Foundation",
"license": "Apache version 2.0",
Expand All @@ -25,6 +26,7 @@
},
"devDependencies": {
"jasmine-node": "~1",
"jshint": "^2.6.0",
"promise-matchers": "~0"
}
}
11 changes: 11 additions & 0 deletions spec/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"node": true
, "bitwise": true
, "undef": true
, "trailing": true
, "quotmark": true
, "indent": 4
, "unused": "vars"
, "latedef": "nofunc"
, "jasmine": true
}

0 comments on commit d0ade1d

Please sign in to comment.