JSHint: add config
This commit is contained in:
parent
63e6cf987f
commit
6020c0740d
2 changed files with 21 additions and 1 deletions
18
jshint.json
Normal file
18
jshint.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"asi": true,
|
||||
"camelcase": true,
|
||||
"freeze": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"maxcomplexity": 10,
|
||||
"noarg": true,
|
||||
"noempty": true,
|
||||
"nonbsp": true,
|
||||
"node": true,
|
||||
"nonew": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"strict": false,
|
||||
"trailing": true
|
||||
}
|
|
@ -23,7 +23,8 @@
|
|||
"mocha-lcov-reporter": "0.0.1",
|
||||
"helloblock-js": "^0.2.1",
|
||||
"request": "~2.34.0",
|
||||
"browserify": "~4.1.5"
|
||||
"browserify": "~4.1.5",
|
||||
"jshint": "2.5.1"
|
||||
},
|
||||
"testling": {
|
||||
"browsers": [
|
||||
|
@ -42,6 +43,7 @@
|
|||
"unit": "./node_modules/.bin/istanbul test ./node_modules/.bin/_mocha -- --reporter list `find test -maxdepth 1 -not -type d`",
|
||||
"test": "npm run-script unit",
|
||||
"integration": "./node_modules/.bin/_mocha --reporter list test/integration/*.js",
|
||||
"jshint": "./node_modules/.bin/jshint --config jshint.json src/*.js ; true",
|
||||
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",
|
||||
"coveralls": "npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info",
|
||||
"compile": "./node_modules/.bin/browserify ./src/index.js -s Bitcoin | ./node_modules/.bin/uglifyjs > bitcoinjs-min.js"
|
||||
|
|
Loading…
Add table
Reference in a new issue