Repository navigation
Expand file tree
/
Copy path.editorconfig
More file actions
120 lines (79 loc) · 3.21 KB
/
Copy path.editorconfig
File metadata and controls
120 lines (79 loc) · 3.21 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# GC-STEM common EditorConfig baseline
# https://editorconfig.org/
#
# Keep end-of-line settings aligned with the repository's .gitattributes file.
# Student-submitted files generally use CRLF for Brightspace compatibility.
# Configuration files, Unix/macOS scripts, and selected structured files use LF.
root = true
# ---------------------------------------------------------------------------
# Common text-file settings
# ---------------------------------------------------------------------------
[*]
charset = utf-8
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true
# ---------------------------------------------------------------------------
# Student-submitted source code
# ---------------------------------------------------------------------------
[*.{c,cc,cpp,cs,cxx,go,h,hh,hpp,java,jl,js,jsx,kt,kts,m,php,py,r,rb,rs,sas,scala,sps,swift,ts,tsx}]
end_of_line = crlf
[*.R]
end_of_line = crlf
# ---------------------------------------------------------------------------
# Student-submitted database and query files
# ---------------------------------------------------------------------------
[*.{cql,cypher,dbml,ddl,dml,prisma,sql}]
end_of_line = crlf
# ---------------------------------------------------------------------------
# Student-submitted markup, documentation, and text data
# ---------------------------------------------------------------------------
[*.{csv,css,htm,html,jsonl,md,ndjson,pseudo,qmd,rmd,scss,tsv,txt}]
end_of_line = crlf
[*.Rmd]
end_of_line = crlf
# ---------------------------------------------------------------------------
# Machine-generated structured files
# ---------------------------------------------------------------------------
[*.{drawio,ipynb,json,xml}]
end_of_line = lf
# ---------------------------------------------------------------------------
# Unix/macOS executable scripts
# ---------------------------------------------------------------------------
[*.{bash,command,sh,zsh}]
end_of_line = lf
# ---------------------------------------------------------------------------
# Unix-oriented build and container files
# ---------------------------------------------------------------------------
[Dockerfile]
end_of_line = lf
[*.dockerfile]
end_of_line = lf
[Makefile]
end_of_line = lf
[makefile]
end_of_line = lf
# ---------------------------------------------------------------------------
# Configuration files
# ---------------------------------------------------------------------------
[*.{cfg,conf,ini,toml,yaml,yml}]
end_of_line = lf
[.editorconfig]
end_of_line = lf
# ---------------------------------------------------------------------------
# Windows scripts
# ---------------------------------------------------------------------------
[*.{bat,cmd,ps1}]
end_of_line = crlf
# ---------------------------------------------------------------------------
# Language- and format-specific indentation
# ---------------------------------------------------------------------------
[*.py]
indent_size = 4
[*.{json,yaml,yml}]
indent_size = 2
# ---------------------------------------------------------------------------
# Markdown
# ---------------------------------------------------------------------------
[*.md]
trim_trailing_whitespace = false