This repository was archived by the owner on Mar 23, 2024. It is now read-only.
v2.3.5
Version 2.3.5 (10-19-2015):
Why not fix some more bugs!
Bug Fixes
- Fix:
requireSpacesInForStatementaccount 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;