Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
Add JSHint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolewhite committed Sep 1, 2015
1 parent ff72b0c commit 5561179
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"indent" : 4,
"shadow" : true,
"jasmine" : true
}
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ sync: minify

test-coveralls:
./node_modules/.bin/istanbul cover ./node_modules/.bin/jasmine-node --captureExceptions test && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

lint:
./node_modules/jshint/bin/jshint algebra.js src/*.js test/*.js
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"src/"
],
"devDependencies": {
"jasmine-node": "1.14.5",
"browserify": "10.2.1",
"uglifyjs": "2.4.10",
"coveralls": "^2.11.2",
"istanbul": "0.3.15"
"istanbul": "0.3.15",
"jasmine-node": "1.14.5",
"jshint": "^2.8.0",
"uglifyjs": "2.4.10"
},
"keywords": [
"algebra",
Expand Down

0 comments on commit 5561179

Please sign in to comment.