New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top level ungrouped rules in.jsbeautifyrc
are ignored
#434
Comments
Can you post your configs? I'll take a look. |
Certainly! The one in my home folder and the top level project directory is:
The one in
|
This seems like a jsbeautify issue, please file this bug at https://github.com/beautify-web/js-beautify/issues I can confirm that in this plugin, jsbeautifyrc files are properly extended, however jslint_happy seems to be ignored by the underlying prettifier lib. |
Sorry, but it isn't. I can run the same code through the beautifier here: And Same goes for the |
Why would some rules get extended and some not? |
Oh, I see what's happening. You need to put your rules inside a "js" or "all" key in a jsbeautifyrc, for example: "js": {
"jslint_happy": true
} |
I'm reopening this with a different title |
.jsbeautifyrc
not being read..jsbeautifyrc
are ignored
@victorporof I like the new name. So that would look like this? {
"js":
{
"jslint_happy": true
}
} Correct? |
@ryanpcmcquen yes! |
Hmmm ... that still isn't working. Same issue. |
Can you please post all of your (updated) jsbeautifyrc configs and the output in sublime’s console? |
I have only updated the https://gist.github.com/ryanpcmcquen/e81baac4a07b4e1b8363273cc0416fa2 As you can see, |
I cannot reproduce this. I've tried doing what you suggested: creating a .jsbeautifyrc config file in the home folder, with the following contents: {
"js":
{
"jslint_happy": true
}
} The sublime console's output properly shows I'm not entirely sure what's going on. Can you please simply post the .jsbeautifyrc files under |
I have one setup for the package (
~/Library/Application Support/Sublime Text 3/Packages/User/.jsbeautifyrc
), one in my home directory~/.jsbeautifyrc
, and one in the top level project folder as well. Yet despite all that, thejslint_happy
setting is being ignored andfunction()
is not being converted tofunction ()
.Mac OS 10.12.x & Sublime Text 3 build 3126.
The text was updated successfully, but these errors were encountered: