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

Commit 5d30879

Browse files
committed
Misc: add 2.7.0 changelog
1 parent 12e8fb5 commit 5d30879

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
## Version [2.7.0](https://github.com/jscs-dev/node-jscs/compare/v2.6.0...v2.7.0)
2+
3+
It's this time of the year again, 2.7 is here!
4+
5+
One new rule, cool amount of fixes and massive jsdoc rule set update.
6+
7+
### New Rules
8+
9+
Although there's only one new rule in this release, it's pretty powerful! Say thanks to @ficristo!
10+
11+
#### [`requireEarlyReturn`](http://jscs.info/rule/requireEarlyReturn)
12+
13+
```js
14+
// This is cool
15+
function test() {
16+
if (x) {
17+
return x;
18+
}
19+
return y;
20+
}
21+
22+
// This is not
23+
function test() {
24+
if (x) {
25+
return x;
26+
} else {
27+
return y;
28+
}
29+
}
30+
```
31+
32+
This is one of the most popular patterns out there, such as in [idiomatic](https://github.com/rwaldron/idiomatic.js/) and [node-style-guide](https://github.com/felixge/node-style-guide).
33+
34+
### Presets
35+
- The `idiomatic` and `node-style-guide` presets now have the `requireEarlyReturn` rule.
36+
- Whereas the `airbnb` preset is better in treating JSX.
37+
38+
### Bug Fixes
39+
40+
* [`disallowTrailingWhitespace`](http://jscs.info/rule/disallowTrailingWhitespace) changes for autofix (thanks @lukeapage!)
41+
* `requirePaddingNewlinesBeforeKeywords`: allow function return on the same line
42+
* `disallowMixedSpacesAndTabs`: fix issue with erroring on block comments
43+
* `auto-configure`: set `maxErrors` to `Infinity`
44+
45+
### Notable Changes in [`jsDoc`](http://jscs.info/rule/jsDoc)
46+
47+
* Improves ES6 support for `enforceExistence`: add exceptions for arrow functions and ES6 modules exports
48+
* Many fixes related to `requireDescriptionCompleteSentence`
49+
* Fixes for incorrecly sticked docblocks to IIFE
50+
* Docblocks without tags now parsing correctly
51+
* Adds `@override` to `jsdoc3` preset
52+
* Arrow functions now treats as usual functions
53+
54+
See the full list in [jscs-jsdoc changelog](https://github.com/jscs-dev/jscs-jsdoc/blob/master/CHANGELOG.md#user-content-v130---2015-12-05).
55+
56+
157
## Version [2.6.0](https://github.com/jscs-dev/node-jscs/compare/v2.5.1...v2.6.0) (11-18-2015):
258

359
Thanks to @seanpdoyle, we're able to move some of the ES6 rules from [ember-suave](https://github.com/dockyard/ember-suave) to JSCS!

0 commit comments

Comments
 (0)