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.10.0 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Feb 15, 2016
1 parent 9cc27b9 commit 9bb126b
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,78 @@
## Version [2.10.0](https://github.com/jscs-dev/node-jscs/compare/v2.9.0...v2.10.0) (2016-02-15):

Happy Presidents Day!

In this release, it's just some additional rules to update to the airbnb preset, new rules, and fixes.

### Preset Changes

* Add `maximumLineLength` to the `airbnb` preset [(reference)](https://github.com/airbnb/javascript#18.12) (Oleg Gaidarenko)
* Add `disallowSpacesInsideTemplateStringPlaceholders` to the `airbnb` preset (not explicit but used in examples) (Oleg Gaidarenko)
* Add `disallowNewlineBeforeBlockStatements` rule to the `mdcs` preset [(reference)](https://github.com/mrdoob/three.js/wiki/Mr.doob's-Code-Style%E2%84%A2#blocks) (Mauricio Massaia)

### New Rules

#### `disallowSpacesInsideTemplateStringPlaceholders`
(ikokostya)

> Disallows spaces before and after curly brace inside template string placeholders.
```js
// usage in config
"disallowSpacesInsideTemplateStringPlaceholders": true
```

```js
// Valid
`Hello ${name}!`
```

```js
// Invalid
`Hello ${ name}!`
`Hello ${name }!`
`Hello ${ name }!`
```

#### `requireImportsAlphabetized` (Ray Hammond)

> Requires imports to be alphabetized
```js
// usage in config
"requireImportAlphabetized": true
```

```js
// Valid
import a from 'a';
import c from 'c';
import z from 'z';
```

```js
// Invalid
import a from 'a';
import z from 'z';
import c from 'c';
```

### Rule Updates

* `requireSpaceBeforeKeywords`: skip `function` by default (gpiress)

### Bug Fixes

* `requireNumericLiterals`: miss if first argument is an Identifier (Robert Jackson)
* `disallowSpacesInsideTemplateStringPlaceholders`: skip the edge case (Oleg Gaidarenko)
* `requirePaddingNewLinesBeforeExport`: exclude if only statement in block (Brian Schemp)
* `maximumLineLength`: some nodes might contain null values (Oleg Gaidarenko)

### Docs

* Correct date in the changelog (Oleg Gaidarenko)
* Various rule corrections (Christopher Cook)

## Version [2.9.0](https://github.com/jscs-dev/node-jscs/compare/v2.8.0...v2.9.0) (2016-01-23):

> Changed the changelog date format to be YYYY-MM-DD.
Expand Down

0 comments on commit 9bb126b

Please sign in to comment.