From 383a1a3a678b7ab8ecfa74cf799b84e060a27d09 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 24 Feb 2013 13:39:18 +0200 Subject: [PATCH] Add JSHint support. Add package.json with check and lint commands to run jshint using .jshintrc. --- .gitignore | 1 + .jshintrc | 19 +++++++++++++++++++ package.json | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 .jshintrc create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..ab49093a6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/npm-debug.log diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000000000..4a68afd94 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,19 @@ +{ + "bitwise": true, + "browser" : true, + "camelcase": true, + "curly": true, + "eqeqeq": true, + "indent": 4, + "jquery" : true, + "latedef": true, + "maxerr": 50, + "noarg": true, + "node" : true, + "noempty": true, + "plusplus": false, + "regexp": true, + "strict": false, + "trailing": true, + "unused": true +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 000000000..7943b1224 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "scripts": { + "check": "jshint .", + "lint": "jshint ." + } +} \ No newline at end of file