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

Commit 743dd8c

Browse files
committed
Misc: add 3.0.0 changelog
1 parent 7cfe388 commit 743dd8c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
## Version [3.0.0](https://github.com/jscs-dev/node-jscs/compare/v2.11.0...v3.0.0) (2016-04-14):
2+
3+
Hell yeah! 3.0 is here. First and foremost we rewrote every... single... rule. We fixed a plentiful amount of bugs (most of which were found during refactoring those rules using [CST](https://github.com/cst/cst)). This provides us the opportunity to include autofix for complicated rules like the brand new `disallowUnusedVariables` rule (see below).
4+
5+
### Breaking Changes
6+
If you aren't a plugin writer or support build extensions (like grunt or gulp), etc you don't have to worry about anything.
7+
8+
We didn't rename any of the rules or remove any of the deprecated rule values; it is all still there. All you have to do to update is just bump the `jscs` version in your `package` version to `3.0.0` and be done with it.
9+
10+
One thing to notice though: the `yandex` preset was removed. Since Yandex doesn't have official code style (don't look at the https://github.com/ymaps/codestyle), we were requested to remove it
11+
12+
One drawback from all these changes is that JSCS might be a little, just a little slower, so if you find any issues related to that - don't hesitate to [drop](https://github.com/jscs-dev/node-jscs/issues/new) us a line, or just drop us a line we are all friendly :).
13+
14+
### New rules
15+
Since this release is about rewrite of internal design, we adding only four new rules (all of them were added by our contributors!).
16+
17+
#### [`disallowUnusedVariables](https://jscs.info/rule/disallowUnusedVariables`) by Brian Schemp
18+
That rule useful when you have `var x = <whatever>` and you don't export that `x` and don't use it. This rule will highlight that and remove it if you want.
19+
20+
#### [`disallowSpacesInsideImportedObjectBraces](https://jscs.info/rule/disallowSpacesInsideImportedObjectBraces`) and [`requireSpacesInsideImportedObjectBraces](https://jscs.info/rule/requireSpacesInsideImportedObjectBraces`) by Maks Sadowsky
21+
When you need or don't need additional parentheses -
22+
```js
23+
import /*–>*/{foo, bar}/*<–*/ from 'foo-bar';
24+
```
25+
26+
#### [`requireUseStrict](https://jscs.info/rule/requireUseStrict`) Erik Vold
27+
Short and cool - ask you to use `"use strict"` pragma on top of the file if you so desire.
28+
29+
#### [`requireImportsAlphabetized](https://jscs.info/rule/requireImportsAlphabetized`) by Ray Hammond
30+
Keeps your imports alphabetized, pretty handy way to keep your dependency in tidy state.
31+
32+
### Presets
33+
* Preset: allow URLs inside comments for airbnb (andreyvolokitin)
34+
* Preset: add `requireSpaceBeforeObjectValues` rule to airbnb preset (Oleg Gaidarenko)
35+
* Preset: add `requireSpacesInsideImportedObjectBraces` to airbnb (Maks Sadowsky)
36+
* Preset: Add 'requireSpaceBetweenArguments' to google preset (Jon Merrifield)
37+
38+
### Internal
39+
There are a lot of internal changes but we like to keep this changelog short and tidy. We will continue to update this shortly.
40+
141
## Version [2.11.0](https://github.com/jscs-dev/node-jscs/compare/v2.10.1...v2.11.0) (2016-03-01):
242

343
Spring release! Yeah, yeah, technically spring only comes in middle of the March (you nerds, you), but we're coming to you a bit earlier!

0 commit comments

Comments
 (0)