Skip to content

Commit

Permalink
chore: introduce a .editorconfig for TypeScript/Svelte (#257)
Browse files Browse the repository at this point in the history
editorconfig is widely supported in most popular editors today, it helps
writing code in different file extensions without having to update
editor configuration by hand.

This PR provides an editorconfig for TypeScript and Svelte to use tabs
for indentation of size 2 and in general use EOL line feed with newline.
  • Loading branch information
EstebanBorai authored Dec 7, 2024
1 parent c5d6e05 commit c21c29c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,ts,svelte}]
indent_style = tab
indent_size = 2

0 comments on commit c21c29c

Please sign in to comment.