Browse Source

Added jshint

master
Caleb James DeLisle 5 years ago
parent
commit
d5125f875d
3 changed files with 17 additions and 0 deletions
  1. 5
      .jshintignore
  2. 6
      .jshintrc
  3. 6
      package.json

5
.jshintignore

@ -0,0 +1,5 @@
node_modules/
www/bower_components/
www/code/codemirror-5.7/
www/code/mode/
www/code/codemirror.js

6
.jshintrc

@ -0,0 +1,6 @@
{
"laxcomma": true,
"laxbreak": true,
"node": true,
"sub": true
}

6
package.json

@ -7,5 +7,11 @@
"ws": "^1.0.1",
"level": "~1.4.0",
"nthen": "~0.1.0"
},
"devDependencies": {
"jshint": "~2.9.1"
},
"scripts": {
"lint": "jshint --config .jshintrc --exclude-path .jshintignore ."
}
}
Loading…
Cancel
Save