mihai-vlc / sublime-jsfmt

jsfmt plugin for Sublime Text
MIT License
477 stars 21 forks source link

.jsfmtrc quotes replaced wrong #15

Closed sanderhouttekier closed 9 years ago

sanderhouttekier commented 10 years ago

a simple javascript file

'use strict';

alert('hello world!');

replaced using the default .jsfmtrc example file from your dotfiles lib outputs this:

"use strict";

alert( "hello world!" );

even when your file has the following quotes config included:

"plugins": [
    "esformatter-quotes",
    //...
],
"quotes": {
    "type": "single",
    "avoidEscape": false
},

I am however sure that the .jshintrc file is actually used as changing other settings like when and how many whitespaces are used, the formatter actually formats the code correctly (whitespace wise)

DefiantBidet commented 10 years ago

I also had this issue pop up. I'm not saying I solved it, but by removing the .jsfmtrc file in my $HOME and using the one in sublime's user settings (not the stack i would prefer btw), it magically fixed itself. Odd... but perhaps that offers some insight for someone.

edit: to clarify, both files were identical:

"quotes": {
    "type": "single",
    "avoidEscape": false
}
mihai-vlc commented 10 years ago

Hi,

Sorry about this one I placed the wrong target on extend. Should work as expected now.

DefiantBidet commented 10 years ago

I just did a quick test and this seems to be resolved for me.
Thanks.