From d5125f875d4145cd2586de7de7b2a2b81e9e7190 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Fri, 12 Feb 2016 10:33:09 +0100 Subject: [PATCH] Added jshint --- .jshintignore | 5 +++++ .jshintrc | 6 ++++++ package.json | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100644 .jshintignore create mode 100644 .jshintrc diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 000000000..19ffa6e4b --- /dev/null +++ b/.jshintignore @@ -0,0 +1,5 @@ +node_modules/ +www/bower_components/ +www/code/codemirror-5.7/ +www/code/mode/ +www/code/codemirror.js diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000000000..ad70ca4fd --- /dev/null +++ b/.jshintrc @@ -0,0 +1,6 @@ +{ + "laxcomma": true, + "laxbreak": true, + "node": true, + "sub": true +} diff --git a/package.json b/package.json index e62340d72..ccc7b682b 100644 --- a/package.json +++ b/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 ." } }