diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 0000000..347fa75 --- /dev/null +++ b/.jshintignore @@ -0,0 +1,18 @@ +core/misc/backbone +core/misc/ckeditor +core/misc/create +core/misc/farbtastic +core/misc/html5.js +core/misc/jquery.ba-bbq.js +core/misc/jquery.form.js +core/misc/jquery.js +core/misc/jquery.once.js +core/misc/modernizr +core/misc/normalize +core/misc/ui +core/misc/underscore +core/misc/vie +core/modules/tour/js/jquery.joyride-2.0.3.js +core/vendor +sites +modules diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..d8ad959 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,22 @@ +{ +"browser" : true, // Can use default global variables like document, window, etc. +"curly" : true, // Require {} in if, for +"eqeqeq" : true, // Require strict equals +"expr" : true, // Drupal-specific, needs to be evaluated individually during review +"forin" : true, // Drupal-specific, already fixed core bugs +"latedef" : true, // Define functions before using them +"newcap" : true, // Drupal Coding Standard +"noarg" : true, // Can't use arguments.callee or arguments.caller +"trailing" : true, // Make sure there is no trailing spaces +"undef" : true, // Variables has to be defined before use +"predef" : [ + "Drupal", + "drupalSettings", + "jQuery", + "_", + "matchMedia", + "Backbone", + "VIE", + "CKEDITOR" + ] // Drupal-specific +}