generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
54 lines (43 loc) · 1009 Bytes
/
.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
48
49
50
51
52
53
54
# Editor Config
# You might need a plugin for your editor: https://editorconfig.org/#download
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
[*.{rb,rake,gemspec,yml,yaml,feature,js,js.erb,jsx,ts,tsx,css,html}]
indent_style = space
indent_size = 2
[*.{erb,slim,coffee,jbuilder,css,sass,scss,html}]
indent_style = space
indent_size = 2
[*.{tf,tf.json,tfvars}]
indent_style = space
indent_size = 2
# JSON files
[*.json]
indent_style = space
indent_size = 2
# Docker files
[Dockerfile]
indent_style = space
indent_size = 2
# Ensure Makefile uses tabs, as required
[Makefile]
indent_style = tab
# XML
[*.xml]
indent_style = space
indent_size = 2
# Markdown files (Markdown does not strictly require line wrapping, but it's often considered good practice)
[*.md]
indent_style = space
indent_size = 2
max_line_length = off
trim_trailing_whitespace = false
# Shell script files
[*.sh]
indent_style = space
indent_size = 2