enginespot / js-beautify-sublime

js-beautify for sublime
101 stars 30 forks source link

Option to not format JSON files #9

Open Lexicality opened 10 years ago

Lexicality commented 10 years ago

I don't like that this plugin reformats my JSON, can you add something to let me stop it doing so please.

sudodoki commented 10 years ago

I suggest you try to leverage option "allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"], and just not specify json or any other format you don't feel like.

Lexicality commented 10 years ago

@sudodoki Where is this option?

sudodoki commented 10 years ago

Hope to get this response in https://github.com/enginespot/js-beautify-sublime/issues/19, given there's a note on using jsbeautify configs

Lexicality commented 10 years ago

This setting is not checked by the plugin. The supported filetypes is hard coded:

return ext in ['js', 'json'] or "javascript" in syntax or "json" in syntax
enginespot commented 10 years ago

can you submit a push , currently I am busy with other project .

micsun-al commented 8 years ago

+1 ... looks at date since last comment ... urgh.