Skip to content

Commit

Permalink
Remove docker-compose.yml in .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Aug 15, 2024
1 parent 6029f14 commit 23eb1a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Console/Concerns/HasInitializeLaravelApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ protected function updateEditorConfig(): void
);
}

if (str_contains($editorConfig, '[docker-compose.yml]')) {
$editorConfig = str_replace(
"\n[docker-compose.yml]\nindent_size = 4\n",
'',
$editorConfig
);
}

file_put_contents(base_path('.editorconfig'), $editorConfig);

$this->components->info('Updated .editorconfig');
Expand Down

0 comments on commit 23eb1a0

Please sign in to comment.