Permalink
Browse files

Add `eqnull` to our JSHint config

  • Loading branch information...
1 parent 67a65c4 commit 297aa87939ae44946a5043e9e6663dd88924c295 @sindresorhus sindresorhus committed Aug 9, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 cli/Gruntfile.js
  2. +1 −1 cli/lib/generators/base.js
View
@@ -22,7 +22,8 @@ module.exports = function( grunt ) {
undef: true,
strict: false,
trailing: true,
- smarttabs: true
+ smarttabs: true,
+ eqnull: true
},
global: {
process: true
@@ -393,7 +393,7 @@ Base.prototype.optionsHelp = function optionsHelp() {
o.alias ? '-' + o.alias + ', ' : '',
'--' + o.name,
o.desc ? '# ' + o.desc : '',
- !o.defaults ? '' : 'Default: ' + o.defaults
+ o.defaults == null ? '' : 'Default: ' + o.defaults
];
});

0 comments on commit 297aa87

Please sign in to comment.