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

v2.3.5

Compare
Choose a tag to compare
@hzoo hzoo released this 20 Oct 03:03
· 419 commits to master since this release

Version 2.3.5 (10-19-2015):

Why not fix some more bugs!

Bug Fixes

  • Fix: requireSpacesInForStatement account for parenthesizedExpression (Henry Zhu)
// allows ()
for (var i = 0; (!reachEnd && (i < elementsToMove)); i++) {
  • Fix: disallowCommaBeforeLineBreak: fix for function params (Henry Zhu)
// allows
function a(b, c) {
  console.log('');
}
  • Fix: requirePaddingNewLineAfterVariableDeclaration - allow exported declarations (Henry Zhu)
// allows
export var a = 1;
export let a = 1;
export const a = 1;
  • Fix: disallowSpaceAfterKeywords - fix issue with using default keyword list (Henry Zhu)
// fixes autofix from `return obj` to `returnobj`
  • Fix: disallowTrailingComma, requireTrailingComma - support ObjectPattern and ArrayPattern (Henry Zhu)
// disallow
const { foo, bar } = baz;
const [ foo, bar ] = baz;

// require
const { foo, bar, } = baz;
const [ foo, bar, ] = baz;