Version 2.4.0 (10-22-2015):
We're releasing pretty often now, right? :-)
Fix
option
- The
--fix
CLI flag can now be used programatically and through a .jscsrc
config.
This is be useful for plugin authors (not only for jscs plugins but also for grunt
/gulp
/etc...
)
Preset updates
- The
jquery
preset (and dependant ones like wordpress
and wikimedia
) is less strict, whereas idiomatic
is now more meticulous.
Couple new rules
[1,2,3] // valid
[1, 2, 3] // invalid
var test = function(one, two,
/*indent!*/ three) {
...
};
Some new rule options
obj["ಠ_ಠ"] // This is wrong!
obj.ಠ_ಠ // Now you get it :-)
var whatDoesAnimalsSay = {
cat: 'meow', dog: 'woof', fox: 'What does it say?' // this is cool now
};
Fixes
// allows
var a = 1;
{
let b = 1;
}