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