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

Commit

Permalink
Misc: add 2.11.0 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Mar 2, 2016
1 parent d750790 commit d85701c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
## Version [2.11.0](https://github.com/jscs-dev/node-jscs/compare/v2.10.1...v2.11.0) (2016-03-01):

Spring release! Although we know that techinically spring only comes in middle of the March (you nerds), were coming to you a bit earlier!

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).

### New Rules

### [`requireSpaceBeforeDestructuredValues`](https://jscs.info/rule/requireSpaceBeforeDestructuredValues) by Maks Sadowsky

Enforces colon spacing after destructuring assignment i.e. [`requireSpaceBeforeObjectValues`](http://jscs.info/rule/requireSpaceBeforeObjectValues) but for destructuring.

```js
// good
const { String: EmberString } = Ember;

// bad
const { String:EmberString } = Ember;
```

### [`disallowArrayDestructuringReturn`](https://jscs.info/rule/disallowArrayDestructuringReturn) by Maks Sadowsky

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`.

```js
// God is on your side
const { left, right } = processInput(input);

// Devil is on your shoulder!
const [left, __, top] = processInput(input);
```

### [`requireNewlineBeforeSingleStatementsInIf`](https://jscs.info/rule/requireNewlineBeforeSingleStatementsInIf) by Brian Schemp

Enforces using newlines in your *parenthesesless* code.

```js

// Cool stairs brah
if (x)
doX();
else
doY();

// Just how could you have "X" and "Y"'s on the same line?!
if (x) doX();
else doY();
```

### Presets
* Preset: ease up on `requireCamelCaseOrUpperCaseIdentifiers` in airbnb (Oleg Gaidarenko)
* Preset: add `disallowArrayDestructuringReturn` to airbnb preset (Maks Sadowsky)

### Bug fixes
* `disallowSpacesInsideTemplateStringPlaceholders`: check template literal (ikokostya)
* `validateQuoteMarks`: do not throw on es7 decorators (Oleg Gaidarenko)

Other commits (as always) are omitted, since they're all about internal stuff and we care about your viewing pleasure.

## Version [2.10.1](https://github.com/jscs-dev/node-jscs/compare/v2.10.0...v2.10.1) (2016-02-15):

### Bug Fix
Expand Down

0 comments on commit d85701c

Please sign in to comment.