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

Fixing "requireNewlineBeforeBlockStatements": true produces incorrect indentation #1820

Closed
thorn0 opened this issue Sep 29, 2015 · 3 comments

Comments

@thorn0
Copy link

thorn0 commented Sep 29, 2015

.jscsrc:

{ "requireNewlineBeforeBlockStatements": true }

Initial code:

function b() {
    var a = function() { console.log(1); };
    return a;
}

Code after jscs -x

function b()
 {
    var a = function()
 { console.log(1); };
    return a;
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@hzoo
Copy link
Member

hzoo commented Sep 29, 2015

although what happens after you add validateIdentation - since that's a separate rule

@thorn0
Copy link
Author

thorn0 commented Sep 30, 2015

After adding "validateIndentation": 4, the output is still invalid.

@markelog
Copy link
Member

At this point only major and CST related bugs will be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants