forked from onwidget/astrowind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
47 lines (37 loc) · 1.02 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# https://EditorConfig.org
# Root EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 2 space indentation for JavaScript, TypeScript, JSON, CSS, HTML, YAML, etc.
[*.{js,jsx,ts,tsx,json,css,scss,less,html,htm,yaml,yml,astro}]
indent_style = space
indent_size = 2
# 4 space indentation for Python, Dockerfiles, Terraform, Ansible, and Bash scripts
[*.{py,Dockerfile,tf,tfvars,yml,sh}]
indent_style = space
indent_size = 4
# Tab indentation for Makefiles
[Makefile]
indent_style = tab
# Handle Markdown files
[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
# Configuration for YAML files (e.g., Ansible playbooks)
[*.{yaml,yml}]
indent_style = space
indent_size = 2
# Ignore generated files
[*.min.js]
insert_final_newline = false
trim_trailing_whitespace = false
# Specific settings for Tailwind CSS (if applicable)
[tailwind.config.js]
indent_style = space
indent_size = 2