mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
CB-8410 Enable jshint for Android platform
This commit is contained in:
parent
fb8e35bb44
commit
d0ade1d190
2
.jshintignore
Normal file
2
.jshintignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bin/node_modules/*
|
||||||
|
bin/templates/project/*
|
10
.jshintrc
Normal file
10
.jshintrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"node": true
|
||||||
|
, "bitwise": true
|
||||||
|
, "undef": true
|
||||||
|
, "trailing": true
|
||||||
|
, "quotmark": true
|
||||||
|
, "indent": 4
|
||||||
|
, "unused": "vars"
|
||||||
|
, "latedef": "nofunc"
|
||||||
|
}
|
@ -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
11
spec/.jshintrc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"node": true
|
||||||
|
, "bitwise": true
|
||||||
|
, "undef": true
|
||||||
|
, "trailing": true
|
||||||
|
, "quotmark": true
|
||||||
|
, "indent": 4
|
||||||
|
, "unused": "vars"
|
||||||
|
, "latedef": "nofunc"
|
||||||
|
, "jasmine": true
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user