jsformat-atom
jsformat-atom copied to clipboard
JSFormat should obey .jsbeautifyrc if file exists
It would be advantageous, if we don't have to "copy" the project specific jsbeautify config to the plugin /panel settings. The jsbeautifyrc file should overwrite the plugin/panel settings.
What do you think? I'm alone with this requirement? Or I'm using it currently wrong?
No that makes sense, the only issue is if there is a conflict between jsbeautifyrc and editorconfig. Thoughts? Are there any conflicts?
For reference, I'm currently looking into supporting .editorconfig files in the current project, so that's why I bring up the possible conflicts that may arise.
the only issue is if there is a conflict between jsbeautifyrc and editorconfig. Thoughts? Are there any conflicts?
If someone has both files, they have to deal with it – bring it in sync by your own – everything else does not make sense to me. IMHO, my preference order: editor config/panel settings -> .editorconfig -> .jsbeautifyrc
+1 on supporting .editorconfig files. Since we use 2 spaces for gulp, test and JSON files, 4 spaces for code.
@glan but then what about supporting .jsbeautifyrc, or .jslintrc, etc. All these files will have conflicts, and having a priority in Atom's config is too complicated, so one file needs to be the reference for the project.
FYI, v0.7.8 includes support for preserving newlines. Are there any other features other than tab size and tab format that need to be project-specific?