clutchski/coffeelint
GitHub で見るadd rule that if(!foo) should be replaced with unless
Open
#381 opened on 2015年2月18日
Help Wantednew rule
説明
basically - if you have an if block with no else, and you have if not or if !blah, it should be replaced with unless.
if !user
return res.badRequest ...
should become
unless user
return res.badRequest..