Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
package.json files are no longer style formatted on save. These files…
Browse files Browse the repository at this point in the history
… are style formatted by for instance npm install, and additional style formatting would lead to unwanted commit changes
  • Loading branch information
eidheim committed Jun 10, 2018
1 parent 802060d commit f2c7a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ bool Source::View::save() {
if(Config::get().source.cleanup_whitespace_characters)
cleanup_whitespace_characters();

if(format_style) {
if(format_style && file_path.filename()!="package.json") {
if(Config::get().source.format_style_on_save)
format_style(true);
else if(Config::get().source.format_style_on_save_if_style_file_found)
Expand Down

0 comments on commit f2c7a94

Please sign in to comment.