From 12c1290deb6204b3e7456d27d3964216c7e850be Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 26 Apr 2013 16:39:06 +0200 Subject: [PATCH] Add .jshintrc, .jshintignore and update .gitignore --- .gitignore | 1 + .jshintignore | 2 ++ .jshintrc | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .jshintignore create mode 100644 .jshintrc diff --git a/.gitignore b/.gitignore index e18a54c..0c278df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *~ .*.swp +.idea *.kate-swp *.bak /node_modules diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 0000000..be17cab --- /dev/null +++ b/.jshintignore @@ -0,0 +1,2 @@ +grunt.js +src\jquery.uls.data.js diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..2c60f50 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,40 @@ +{ + /* Common */ + + // Enforcing + "camelcase": true, + "curly": true, + "eqeqeq": true, + "immed": true, + "latedef": true, + "newcap": true, + "noarg": true, + "noempty": true, + "nonew": true, + "quotmark": "single", + "trailing": true, + "undef": true, + "unused": true, + // Legacy + "onevar": true, + + /* Local */ + + // Enforcing + "bitwise": true, + "forin": false, + "regexp": false, + "strict": true, + // Relaxing + "laxbreak": true, + "smarttabs": true, + "multistr": true, + // Environment + "browser": true, + + "predef": [ + "_", + "jQuery", + "QUnit" + ] +}