js-beautify-sublime icon indicating copy to clipboard operation
js-beautify-sublime copied to clipboard

Option to not format JSON files

Open Lexicality opened this issue 11 years ago • 6 comments
trafficstars

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

Lexicality avatar Mar 01 '14 15:03 Lexicality

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.

sudodoki avatar Jul 20 '14 21:07 sudodoki

@sudodoki Where is this option?

Lexicality avatar Jul 21 '14 06:07 Lexicality

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

sudodoki avatar Jul 21 '14 06:07 sudodoki

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

Lexicality avatar Jul 21 '14 11:07 Lexicality

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

enginespot avatar Jul 22 '14 10:07 enginespot

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

micsun-al avatar Oct 19 '16 21:10 micsun-al