Skip to content

Commit b223a4a

Browse files
committed
Add jslint
1 parent a0f2b8b commit b223a4a

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
"description": "Restapi server for opneFPGAduino",
55
"main": "server.js",
66
"scripts": {
7-
"test": "node_modules/mocha/bin/mocha ut/mocha.js --timeout 10000"
7+
"test": "node_modules/mocha/bin/mocha ut/mocha.js --timeout 10000",
8+
"jslint": "jslint 'apps/*.js' 'server.js'"
89
},
910
"repository": {
1011
"type": "git",
1112
"url": "https://github.com/OpenFPGAduino/Arduinojs.git"
1213
},
14+
"pre-commit": [
15+
"test",
16+
"jslint"
17+
],
1318
"dependencies": {
1419
"bluebird": "*",
1520
"optimist": "*",
@@ -51,7 +56,10 @@
5156
"author": "Zhizhou Li",
5257
"license": "GPL",
5358
"readmeFilename": "README.md",
54-
"devDependencies": {},
59+
"devDependencies": {
60+
"pre-commit": "0.0.9",
61+
"jslint": "0.6.4"
62+
},
5563
"keywords": [
5664
"Restapi",
5765
"node"

0 commit comments

Comments
 (0)