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

Commit 9bb126b

Browse files
committed
Misc: add 2.10.0 changelog
1 parent 9cc27b9 commit 9bb126b

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,78 @@
1+
## Version [2.10.0](https://github.com/jscs-dev/node-jscs/compare/v2.9.0...v2.10.0) (2016-02-15):
2+
3+
Happy Presidents Day!
4+
5+
In this release, it's just some additional rules to update to the airbnb preset, new rules, and fixes.
6+
7+
### Preset Changes
8+
9+
* Add `maximumLineLength` to the `airbnb` preset [(reference)](https://github.com/airbnb/javascript#18.12) (Oleg Gaidarenko)
10+
* Add `disallowSpacesInsideTemplateStringPlaceholders` to the `airbnb` preset (not explicit but used in examples) (Oleg Gaidarenko)
11+
* 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)
12+
13+
### New Rules
14+
15+
#### `disallowSpacesInsideTemplateStringPlaceholders`
16+
(ikokostya)
17+
18+
> Disallows spaces before and after curly brace inside template string placeholders.
19+
20+
```js
21+
// usage in config
22+
"disallowSpacesInsideTemplateStringPlaceholders": true
23+
```
24+
25+
```js
26+
// Valid
27+
`Hello ${name}!`
28+
```
29+
30+
```js
31+
// Invalid
32+
`Hello ${ name}!`
33+
`Hello ${name }!`
34+
`Hello ${ name }!`
35+
```
36+
37+
#### `requireImportsAlphabetized` (Ray Hammond)
38+
39+
> Requires imports to be alphabetized
40+
41+
```js
42+
// usage in config
43+
"requireImportAlphabetized": true
44+
```
45+
46+
```js
47+
// Valid
48+
import a from 'a';
49+
import c from 'c';
50+
import z from 'z';
51+
```
52+
53+
```js
54+
// Invalid
55+
import a from 'a';
56+
import z from 'z';
57+
import c from 'c';
58+
```
59+
60+
### Rule Updates
61+
62+
* `requireSpaceBeforeKeywords`: skip `function` by default (gpiress)
63+
64+
### Bug Fixes
65+
66+
* `requireNumericLiterals`: miss if first argument is an Identifier (Robert Jackson)
67+
* `disallowSpacesInsideTemplateStringPlaceholders`: skip the edge case (Oleg Gaidarenko)
68+
* `requirePaddingNewLinesBeforeExport`: exclude if only statement in block (Brian Schemp)
69+
* `maximumLineLength`: some nodes might contain null values (Oleg Gaidarenko)
70+
71+
### Docs
72+
73+
* Correct date in the changelog (Oleg Gaidarenko)
74+
* Various rule corrections (Christopher Cook)
75+
176
## Version [2.9.0](https://github.com/jscs-dev/node-jscs/compare/v2.8.0...v2.9.0) (2016-01-23):
277

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

0 commit comments

Comments
 (0)