Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 9ef33c3

Browse files
committed
Misc: Prepare for version 2.4.0
1 parent 98812c4 commit 9ef33c3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
## Version [2.4.0](https://github.com/jscs-dev/node-jscs/compare/v2.3.5...v2.4.0) (10-22-2015):
2+
3+
We're releasing pretty often now, right? :-)
4+
5+
### `Fix` option
6+
7+
- The `--fix` CLI flag can now be used programatically and [through](http://jscs.info/overview#fix) a `.jscsrc` config.
8+
9+
> This is be useful for plugin authors (not only for jscs plugins but also for `grunt`/`gulp`/`etc...`)
10+
11+
### Preset updates
12+
13+
- The `jquery` preset (and dependant ones like `wordpress` and `wikimedia`) is less strict, whereas `idiomatic` is now more meticulous.
14+
15+
### Couple new rules
16+
17+
* [`disallowSpaceAfterComma`](http://jscs.info/rules/disallowSpaceAfterComma) - to have an opposite rule to [`disallowSpaceBeforeComma`](http://jscs.info/rules/disallowSpaceBeforeComma):
18+
19+
```js
20+
[1,2,3] // valid
21+
[1, 2, 3] // invalid
22+
```
23+
24+
* [`requireAlignedMultilineParams`](http://jscs.info/rules/requireAlignedMultilineParams) - a nice addition to our indentation rules:
25+
26+
```js
27+
var test = function(one, two,
28+
/*indent!*/ three) {
29+
...
30+
};
31+
```
32+
33+
### Some new rule options
34+
35+
* [`requireDotNotation`](http://jscs.info/rules/requireDotNotation) now supports fancy letters like `π` -
36+
37+
```js
38+
obj["ಠ_ಠ"] // This is wrong!
39+
obj.ಠ_ಠ // Now you get it :-)
40+
```
41+
42+
* [`maxNumberOfLines`](http://jscs.info/rules/maxNumberOfLines) can now ignore comments with the `{"allExcept": ["comments"]}` option
43+
* [`requireObjectKeysOnNewLine`](http://jscs.info/rules/requireObjectKeysOnNewLine) can ignore object properties on the same line with `{"allExcept": ["sameLine"]}` option -
44+
```js
45+
var whatDoesAnimalsSay = {
46+
cat: 'meow', dog: 'woof', fox: 'What does it say?' // this is cool now
47+
};
48+
```
49+
150
## Version [2.3.5](https://github.com/jscs-dev/node-jscs/compare/v2.3.4...v2.3.5) (10-19-2015):
251

352
Why not fix some more bugs!

0 commit comments

Comments
 (0)