From be5e338869e2c276b64a5359bb5f9c11cc11dc9e Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Sat, 31 Aug 2013 02:24:43 +0900 Subject: [PATCH] Update jshintrc. Added strict, laxcomma and camelcase options. Removed the es5 option. --- .jshintrc | 7 ++++--- Gruntfile.js | 4 ++-- src/perfect-scrollbar.js | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.jshintrc b/.jshintrc index 67fc355..213be33 100644 --- a/.jshintrc +++ b/.jshintrc @@ -22,8 +22,7 @@ "debug" : false, "devel" : true, - "es5" : true, - "strict" : false, + "strict" : true, "globalstrict" : true, "asi" : false, @@ -56,5 +55,7 @@ "sub" : false, "trailing" : true, "white" : true, - "indent" : 2 + "indent" : 2, + "laxcomma" : true, + "camelcase" : true } diff --git a/Gruntfile.js b/Gruntfile.js index 20271a3..5d07b09 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -27,7 +27,7 @@ module.exports = function (grunt) { 'src/jquery.mousewheel.js' ] } - }, + } }, jshint: { gruntfile: { @@ -47,7 +47,7 @@ module.exports = function (grunt) { strict: { options: { csslintrc: '.csslintrc', - import: 2 + 'import': 2 }, src: ['src/perfect-scrollbar.css'] } diff --git a/src/perfect-scrollbar.js b/src/perfect-scrollbar.js index a79bf9b..2640be1 100644 --- a/src/perfect-scrollbar.js +++ b/src/perfect-scrollbar.js @@ -1,6 +1,7 @@ /* Copyright (c) 2012 HyeonJe Jun (http://github.com/noraesae) * Licensed under the MIT License */ +'use strict'; ((function ($) { // The default settings for the plugin