From 3ff5cdf898b06e0772daf2720bae1328851417ce Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 7 Apr 2014 13:13:28 +0300 Subject: [PATCH] Enable JSHint's `camelcase` rule. --- .jshintrc | 1 + Gruntfile.js | 2 +- src/cli/common.js | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.jshintrc b/.jshintrc index 86857442..96e43ec6 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,4 +1,5 @@ { + "camelcase": true, "curly": true, "eqnull": true, "forin": true, diff --git a/Gruntfile.js b/Gruntfile.js index 87044210..3ecf8884 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,4 +1,4 @@ -/* jshint evil:true, node:true */ +/* jshint camelcase:false, evil:true, node:true */ module.exports = function(grunt) { diff --git a/src/cli/common.js b/src/cli/common.js index 4268f85f..fd6867bb 100644 --- a/src/cli/common.js +++ b/src/cli/common.js @@ -284,9 +284,9 @@ function cli(api){ } function validateOptions(options) { - for (var option_key in options) { - if (!globalOptions.hasOwnProperty(option_key) && option_key !== "files") { - api.print(option_key + " is not a valid option. Exiting..."); + for (var optionKey in options) { + if (!globalOptions.hasOwnProperty(optionKey) && optionKey !== "files") { + api.print(optionKey + " is not a valid option. Exiting..."); outputHelp(); api.quit(0); }