You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff 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
+
vartest=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
+
1
50
## Version [2.3.5](https://github.com/jscs-dev/node-jscs/compare/v2.3.4...v2.3.5) (10-19-2015):
0 commit comments