Skip to content

Commit e8cff54

Browse files
committed
Consolidate and update configurations
1 parent 4c3291c commit e8cff54

File tree

1 file changed

+26
-35
lines changed

1 file changed

+26
-35
lines changed

.editorconfig

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,101 +29,92 @@ trim_trailing_whitespace = true
2929
insert_final_newline = true
3030

3131
# Set properties for JavaScript files:
32-
[*.js]
33-
indent_style = tab
34-
35-
[*.js.txt]
32+
[*.{js,js.txt}]
3633
indent_style = tab
3734

3835
# Set properties for JavaScript ES module files:
39-
[*.mjs]
40-
indent_style = tab
41-
42-
[*.mjs.txt]
36+
[*.{mjs,mjs.txt}]
4337
indent_style = tab
4438

4539
# Set properties for JavaScript CommonJS files:
46-
[*.cjs]
40+
[*.{cjs,cjs.txt}]
4741
indent_style = tab
4842

49-
[*.cjs.txt]
50-
indent_style = tab
43+
# Set properties for JSON files:
44+
[*.{json,json.txt}]
45+
indent_style = space
46+
indent_size = 2
5147

5248
# Set properties for TypeScript files:
5349
[*.ts]
5450
indent_style = tab
5551

5652
# Set properties for Python files:
57-
[*.py]
53+
[*.{py,py.txt}]
5854
indent_style = space
5955
indent_size = 4
6056

6157
# Set properties for Julia files:
62-
[*.jl]
58+
[*.{jl,jl.txt}]
6359
indent_style = tab
6460

6561
# Set properties for R files:
66-
[*.R]
62+
[*.{R,R.txt}]
6763
indent_style = tab
6864

6965
# Set properties for C files:
70-
[*.c]
66+
[*.{c,c.txt}]
7167
indent_style = tab
7268

7369
# Set properties for C header files:
74-
[*.h]
70+
[*.{h,h.txt}]
7571
indent_style = tab
7672

7773
# Set properties for C++ files:
78-
[*.cpp]
74+
[*.{cpp,cpp.txt}]
7975
indent_style = tab
8076

8177
# Set properties for C++ header files:
82-
[*.hpp]
78+
[*.{hpp,hpp.txt}]
8379
indent_style = tab
8480

8581
# Set properties for Fortran files:
86-
[*.f]
82+
[*.{f,f.txt}]
8783
indent_style = space
8884
indent_size = 2
8985
insert_final_newline = false
9086

9187
# Set properties for shell files:
92-
[*.sh]
88+
[*.{sh,sh.txt}]
9389
indent_style = tab
9490

9591
# Set properties for AWK files:
96-
[*.awk]
92+
[*.{awk,awk.txt}]
9793
indent_style = tab
9894

9995
# Set properties for HTML files:
100-
[*.html]
96+
[*.{html,html.txt}]
10197
indent_style = tab
10298
tab_width = 2
10399

104100
# Set properties for XML files:
105-
[*.xml]
101+
[*.{xml,xml.txt}]
106102
indent_style = tab
107103
tab_width = 2
108104

109105
# Set properties for CSS files:
110-
[*.css]
106+
[*.{css,css.txt}]
111107
indent_style = tab
112108

113109
# Set properties for Makefiles:
114110
[Makefile]
115111
indent_style = tab
116112

117-
[*.mk]
113+
[*.{mk,mk.txt}]
118114
indent_style = tab
119115

120116
# Set properties for Markdown files:
121-
[*.md]
122-
indent_style = space
123-
indent_size = 4
124-
trim_trailing_whitespace = false
125-
126-
[*.md.txt]
117+
[*.{md,md.txt}]
127118
indent_style = space
128119
indent_size = 4
129120
trim_trailing_whitespace = false
@@ -139,7 +130,7 @@ indent_style = space
139130
indent_size = 4
140131

141132
# Set properties for `package.json` files:
142-
[package.json]
133+
[package.{json,json.txt}]
143134
indent_style = space
144135
indent_size = 2
145136

@@ -164,15 +155,15 @@ indent_style = space
164155
indent_size = 2
165156

166157
# Set properties for LaTeX files:
167-
[*.tex]
158+
[*.{tex,tex.txt}]
168159
indent_style = tab
169160

170161
# Set properties for LaTeX Bibliography files:
171-
[*.bib]
162+
[*.{bib,bib.txt}]
172163
indent_style = tab
173164

174165
# Set properties for YAML files:
175-
[*.yml]
166+
[*.{yml,yml.txt}]
176167
indent_style = space
177168
indent_size = 2
178169

0 commit comments

Comments
 (0)