vkadam / grunt-jsbeautifier

Beautify js, css, html and json files using Grunt and https://github.com/einars/js-beautify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect formatting of variable declaration type: One Statement, Many Variables

legaev-stas opened this issue · comments

Steps to reproduce:

  1. try to validate this code:
    function foo(){
    var a,
    b,
    c
    }

Expected result:
Formater should add one indent level for each variable after line with statement in multiple variable declaration. Like on http://jsbeautifier.org/

Actual result:
Variable declarations don't have indent after line with statement.

@vkadam @legaev-stas this pull request solve this issue:
#9

Fixed with version 0.1.7