|
| 1 | +## Version [2.11.0](https://github.com/jscs-dev/node-jscs/compare/v2.10.1...v2.11.0) (2016-03-01): |
| 2 | + |
| 3 | +Spring release! Although we know that techinically spring only comes in middle of the March (you nerds), were coming to you a bit earlier! |
| 4 | + |
| 5 | +Anyways, there are three new rules, a couple of changes for the `airbnb` preset and important fixes for [`disallowSpacesInsideTemplateStringPlaceholders`](https://jscs.info/rule/disallowSpacesInsideTemplateStringPlaceholders) and [`validateQuoteMarks`](https://jscs.info/rule/validateQuoteMarks) (for all you ES7 lovers). |
| 6 | + |
| 7 | +### New Rules |
| 8 | + |
| 9 | +### [`requireSpaceBeforeDestructuredValues`](https://jscs.info/rule/requireSpaceBeforeDestructuredValues) by Maks Sadowsky |
| 10 | + |
| 11 | +Enforces colon spacing after destructuring assignment i.e. [`requireSpaceBeforeObjectValues`](http://jscs.info/rule/requireSpaceBeforeObjectValues) but for destructuring. |
| 12 | + |
| 13 | +```js |
| 14 | +// good |
| 15 | +const { String: EmberString } = Ember; |
| 16 | + |
| 17 | +// bad |
| 18 | +const { String:EmberString } = Ember; |
| 19 | +``` |
| 20 | + |
| 21 | +### [`disallowArrayDestructuringReturn`](https://jscs.info/rule/disallowArrayDestructuringReturn) by Maks Sadowsky |
| 22 | + |
| 23 | +Enforces the [5:3 verse](https://github.com/airbnb/javascript#5.3) of airbnb code style, which prohibits use of array destructuring for thy `CallExpressions`. |
| 24 | + |
| 25 | +```js |
| 26 | +// God is on your side |
| 27 | +const { left, right } = processInput(input); |
| 28 | + |
| 29 | +// Devil is on your shoulder! |
| 30 | +const [left, __, top] = processInput(input); |
| 31 | +``` |
| 32 | + |
| 33 | +### [`requireNewlineBeforeSingleStatementsInIf`](https://jscs.info/rule/requireNewlineBeforeSingleStatementsInIf) by Brian Schemp |
| 34 | + |
| 35 | +Enforces using newlines in your *parenthesesless* code. |
| 36 | + |
| 37 | +```js |
| 38 | + |
| 39 | +// Cool stairs brah |
| 40 | +if (x) |
| 41 | + doX(); |
| 42 | +else |
| 43 | + doY(); |
| 44 | + |
| 45 | +// Just how could you have "X" and "Y"'s on the same line?! |
| 46 | +if (x) doX(); |
| 47 | +else doY(); |
| 48 | +``` |
| 49 | + |
| 50 | +### Presets |
| 51 | +* Preset: ease up on `requireCamelCaseOrUpperCaseIdentifiers` in airbnb (Oleg Gaidarenko) |
| 52 | +* Preset: add `disallowArrayDestructuringReturn` to airbnb preset (Maks Sadowsky) |
| 53 | + |
| 54 | +### Bug fixes |
| 55 | +* `disallowSpacesInsideTemplateStringPlaceholders`: check template literal (ikokostya) |
| 56 | +* `validateQuoteMarks`: do not throw on es7 decorators (Oleg Gaidarenko) |
| 57 | + |
| 58 | +Other commits (as always) are omitted, since they're all about internal stuff and we care about your viewing pleasure. |
| 59 | + |
1 | 60 | ## Version [2.10.1](https://github.com/jscs-dev/node-jscs/compare/v2.10.0...v2.10.1) (2016-02-15):
|
2 | 61 |
|
3 | 62 | ### Bug Fix
|
|
0 commit comments