This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello 👋
🚀🚀🚀
jscs just published its new version 3.0.0, which is not covered by your current version range.
If this pull request passes your tests you can publish your software with the latest version of jscs – otherwise use this branch to work on adaptions and fixes.
Happy fixing and merging 🌴
GitHub Release
Version 3.0.0 (2016-04-14):
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). This provides us the opportunity to include autofix for complicated rules like the brand new
disallowUnusedVariables
rule (see below).Breaking Changes
If you aren't a plugin writer or support build extensions (like grunt or gulp), etc you don't have to worry about anything.
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 yourpackage
version to3.0.0
and be done with it.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 itOne 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 us a line, or just drop us a line we are all friendly :).
New rules
Since this release is about rewrite of internal design, we adding only four new rules (all of them were added by our contributors!).
disallowUnusedVariables
by Brian SchempThat rule useful when you have
var x = <whatever>
and you don't export thatx
and don't use it. This rule will highlight that and remove it if you want.disallowSpacesInsideImportedObjectBraces
andrequireSpacesInsideImportedObjectBraces
by Maks SadowskyWhen you need or don't need additional parentheses -
requireUseStrict
Erik VoldShort and cool - ask you to use
"use strict"
pragma on top of the file if you so desire.requireImportsAlphabetized
by Ray HammondKeeps your imports alphabetized, pretty handy way to keep your dependency in tidy state.
The new version differs by 257 commits .
c3a5e8a
3.0.0
743dd8c
Misc: add 3.0.0 changelog
7cfe388
Tests: one last improvement to generator tests
e005fd3
Misc: make linters happy
a855828
Tests: remove unstable generator test and re-enable it
86be5b5
Tests: skip the generator tests
291bb41
Docs: remove leftover of yandex preset
90fae1a
[Perf] Reduce location computations
4bd3800
[Fix] Parsing errors
5b6f8de
[Fix] Parsing errors
4517263
[Fix] Keywords in identifiers
c82294f
[Fix] Unskip generator tests
b09ef84
[Fix] Remaining style issues
9ce5130
[Fix] JsDoc plugin dep
db5b76c
[Fix] Error fixes
There are 250 commits in total. See the full diff.
This pull request was created by greenkeeper.io.
Tired of seeing this sponsor message? Upgrade to the supporter plan! You'll also get your pull requests faster ⚡It keeps your software up to date, all the time.