Skip to content

Commit

Permalink
Merge pull request CSSLint#488 from XhmikosR/camelcase
Browse files Browse the repository at this point in the history
Enable JSHint's `camelcase` rule.
  • Loading branch information
nschonni committed Apr 10, 2014
2 parents ce40b60 + 3ff5cdf commit 5e2bd1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"camelcase": true,
"curly": true,
"eqnull": true,
"forin": true,
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* jshint evil:true, node:true */
/* jshint camelcase:false, evil:true, node:true */

module.exports = function(grunt) {

Expand Down
6 changes: 3 additions & 3 deletions src/cli/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5e2bd1d

Please sign in to comment.