Skip to content

Instantly share code, notes, and snippets.

@ricardo-melo-martins
Last active February 23, 2024 00:33
Show Gist options
  • Save ricardo-melo-martins/eb4394014562774d1d8a1285a9f796f8 to your computer and use it in GitHub Desktop.
Save ricardo-melo-martins/eb4394014562774d1d8a1285a9f796f8 to your computer and use it in GitHub Desktop.
Editorconfig - my common config
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{js,jsx,ts,tsx}]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
quote_type = single
spaces_around_brackets = inside
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
max_line_length = off

[*.json]
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment