Skip to content

Commit

Permalink
add jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
mickhansen committed Mar 15, 2015
1 parent e5ccf79 commit 2e5f7ca
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"bitwise":false,
"boss":true,
"expr":true,
"camelcase":false,
"curly":false,
"eqeqeq":true,
"freeze":true,
"immed":true,
"indent":2,
"latedef":"nofunc",
"laxbreak":true,
"laxcomma":true,
"newcap":true,
"noarg":true,
"node":true,
"strict":true,
"trailing":true,
"undef":true,
"esnext":false,
"sub":true,

/* questionable */
"loopfunc":true,

"globals": {
"Promise": true
},

"predef": [
"alert",
"describe",
"it",
"before",
"beforeEach",
"after",
"afterEach",
"suite",
"setup",
"test"
]
}
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var Sequelize = require('sequelize')
, init;

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Simple attribute roles/acl for Sequelize",
"main": "lib/index.js",
"scripts": {
"test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec"
"test": " ./node_modules/.bin/jshint lib/ test/ && ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec"
},
"repository": {
"type": "git",
Expand All @@ -28,6 +28,7 @@
"devDependencies": {
"expect.js": "^0.3.1",
"istanbul": "^0.3.7",
"jshint": "^2.6.3",
"mocha": "^2.2.1",
"sequelize": "^2.0.4",
"sqlite3": "^3.0.5"
Expand Down
2 changes: 2 additions & 0 deletions test/get.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var ssaclAttributeRoles = require('../lib')
, expect = require('expect.js')
, Sequelize = require('sequelize')
Expand Down

0 comments on commit 2e5f7ca

Please sign in to comment.