mihai-vlc / sublime-jsfmt

jsfmt plugin for Sublime Text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.jsfmtrc quotes replaced wrong

sanderhouttekier opened this issue · comments

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)

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
}

Hi,

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

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