Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jscs to version 2.11.0 πŸš€ #15

Closed
wants to merge 1 commit into from

Conversation

greenkeeperio-bot
Copy link
Contributor

Hello πŸ‘‹

πŸš€πŸš€πŸš€

jscs just published its new version 2.11.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 2.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 and validateQuoteMarks (for all you ES7 lovers).

New Rules

requireSpaceBeforeDestructuredValues by Maks Sadowsky

Enforces colon spacing after destructuring assignment i.e. requireSpaceBeforeObjectValues but for destructuring.

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

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

disallowArrayDestructuringReturn by Maks Sadowsky

Enforces the 5:3 verse of airbnb code style, which prohibits use of array destructuring for thy CallExpressions.

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

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

requireNewlineBeforeSingleStatementsInIf by Brian Schemp

Enforces using newlines in your parenthesesless code.

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


The new version differs by 81 commits .

  • 8d25f6d 2.11.0
  • d85701c Misc: add 2.11.0 changelog
  • d750790 Docs: correct docs requireCapitalizedConstructorsNew rule
  • f0b859b Preset: add requireshorthandarrowfunctions rule to airbnb preset
  • 4b97b03 disallowArrayDestructuringReturn: adjust to 2.x
  • 3b1fc42 Preset: add disallowArrayDestructuringReturn in airbnb preset
  • 8500623 New rule: disallowArrayDestructuringReturn
  • d760044 Misc: fix dynamic test requires
  • 60caf4f Preset: ease up onrequireCamelCaseOrUpperCaseIdentifiersin airbnb
  • ce34c05 requireNewlineBeforeSingleStatementsInIf: make lint happy
  • f9f203b requireNewlineBeforeSingleStatementsInIf: correct it for 2.x branch
  • 703cad3 validateQuoteMarks: do not throw on es7 decorators
  • 74b11a4 New rule: requireNewlineBeforeSingleStatementsInIf
  • f7ba2ea requireSpaceBeforeDestructuredValues: make lint happy
  • a195c2e New rule: requireSpaceBeforeDestructuredValue

There are 81 commits in total. See the full diff.


This pull request was created by greenkeeper.io.
It keeps your software, up to date, all the time.

Tired of seeing this sponsor message? Upgrade to the supporter plan! You'll also get your pull requests faster ⚑

@confuser confuser closed this Apr 14, 2016
@confuser confuser deleted the greenkeeper-jscs-2.11.0 branch April 14, 2016 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants