Skip to content

Commit 3ff5cdf

Browse files
committed
Enable JSHint's camelcase rule.
1 parent ce40b60 commit 3ff5cdf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.jshintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"camelcase": true,
23
"curly": true,
34
"eqnull": true,
45
"forin": true,

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* jshint evil:true, node:true */
1+
/* jshint camelcase:false, evil:true, node:true */
22

33
module.exports = function(grunt) {
44

src/cli/common.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ function cli(api){
284284
}
285285

286286
function validateOptions(options) {
287-
for (var option_key in options) {
288-
if (!globalOptions.hasOwnProperty(option_key) && option_key !== "files") {
289-
api.print(option_key + " is not a valid option. Exiting...");
287+
for (var optionKey in options) {
288+
if (!globalOptions.hasOwnProperty(optionKey) && optionKey !== "files") {
289+
api.print(optionKey + " is not a valid option. Exiting...");
290290
outputHelp();
291291
api.quit(0);
292292
}

0 commit comments

Comments
 (0)