You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, there is a .editorconfig file and a .jsbeautifyrc file.
The content of .editorconfig is:
root = true
[*]
indent_style = space
indent_size = 2
The content of .jsbeautifyrc is:
{
"editorconfig": true
}
If I use command js-beautify app.js, the output code will be indented with 2 space.
If I use command cat app.js | js-beautify, the output code will not change to 2 space. Same that when using shell pipeline, js-beautify won't read .editorconfig file.
Input
The code looked like this before beautification:
if (true) {
something;
}
Expected Output
The code should have looked like this after beautification:
if (true) {
something;
}
Actual Output
The code actually looked like this after beautification:
if (true) {
something;
}
Steps to Reproduce
Environment
OS:
ubuntu 16.04 64bit
The text was updated successfully, but these errors were encountered:
Description
In my project, there is a
.editorconfig
file and a.jsbeautifyrc
file.The content of
.editorconfig
is:The content of
.jsbeautifyrc
is:If I use command
js-beautify app.js
, the output code will be indented with 2 space.If I use command
cat app.js | js-beautify
, the output code will not change to 2 space. Same that when using shell pipeline, js-beautify won't read.editorconfig
file.Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Environment
OS:
ubuntu 16.04 64bit
The text was updated successfully, but these errors were encountered: