From b7c766c0c6a2e44c6c12e88ef567ed2c904a744a Mon Sep 17 00:00:00 2001 From: Chuck C Williams Date: Thu, 8 Jun 2017 17:32:26 -0400 Subject: [PATCH] Adding jshint and package.json updates ... resulting from commit-hook work --- .jshintignore | 1 + .jshintrc | 10 ++++++++++ package.json | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .jshintignore create mode 100644 .jshintrc diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.jshintignore @@ -0,0 +1 @@ +node_modules diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..997b3f7 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,10 @@ +{ + "node": true, + + "curly": true, + "latedef": true, + "quotmark": true, + "undef": true, + "unused": true, + "trailing": true +} diff --git a/package.json b/package.json index 71e1086..0d61045 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,8 @@ "serve": "browser-sync start --server _site -f '_site/dist/css'", "start": "npm run build -s && npm run watch", "postinstall": "gem install bundler && bundle install", - "validate": "npm ls" + "validate": "npm ls", + "lint": "jshint ." }, "author": "0xfff <0xfff@protonmail.com>", "license": "MIT",