-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
48 lines (36 loc) · 1.21 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
48
# https://EditorConfig.org
root = true # search for .editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
# Line endings
end_of_line = lf # set to lf, cr, or crlf to control how line breaks are represented.
insert_final_newline = true # set to true to ensure file ends with a newline
trim_trailing_whitespace = true # set to true to remove any whitespace characters preceding newline characters and false to ensure it doesn't.
# Tab indentation
indent_size = 4
indent_style = space
[*.bat]
end_of_line = crlf
[*.{go, puml, nsi, nsh, Makefile, mk}]
indent_style = tab
[*.{yml, yaml, json, js, css, gohtml, gotmpl, toml, scss, sass, xml, mjs}]
indent_size = 2
[*.{md, markdown, html}]
indent_size = 2
max_line_length = off
# [*.other]
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#max_line_length
# Line length
# Language Coding Standard Maximum Length
# Python PEP8 79
# R Google 80
# Java Android 100
# PHP PSR-2 120
# Ruby AirBnB 100
# JavaScript Douglas Crockford 80
# CSS Harry Roberts 80
# C++ Google 80
# Go Effective Go No limit
[*.go]
max_line_length = off