Do not include screenshots! This library is a text processor, we need text inputs and outputs for debugging and fixing issues.
Check the list of open issues before filing a new issue.
Input
The code looked like this before beautification (from a standard vue-cli create (v4.3.1) project setup with router and vuex using eslint:recommended as linting config option):
(like the above code sample, which comes preformatted from vue-cli)
Actual Output
The code actually looked like this after beautification (the curly brace is put next to the bracket, now eslint complains that the line following the curly brace has 4 spaces, expected: 2):
My suspicion is that there is no formatting option that allows to put the curly brace on the next line and keep it indented!
(It is possible to tell beautify to put the brace on the next line, but without indentation! And the current behaviour puts either the beginning or the closing bracket/braces-couple on one line...)
Any update on this? Currently running into this when creating a team-specific formatter for json objects. We prefer the indented curly braces inside of a list in python. @bitwiseman
Description
Input
The code looked like this before beautification (from a standard
vue-cli create
(v4.3.1) project setup with router and vuex usingeslint:recommended
as linting config option):Expected Output
(like the above code sample, which comes preformatted from vue-cli)
Actual Output
The code actually looked like this after beautification (the curly brace is put next to the bracket, now eslint complains that the line following the curly brace has 4 spaces, expected: 2):
Steps to Reproduce
router/index.js
in VScodeEnvironment
OS: MacOS 10.13.6 NodeJS: 12.16.1
Settings
Using a .jsbeautifyrc:
My suspicion is that there is no formatting option that allows to put the curly brace on the next line and keep it indented! (It is possible to tell beautify to put the brace on the next line, but without indentation! And the current behaviour puts either the beginning or the closing bracket/braces-couple on one line...)