generated from AOSSIE-Org/Template-Repo
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.editorconfig
More file actions
60 lines (51 loc) · 1.83 KB
/
.editorconfig
File metadata and controls
60 lines (51 loc) · 1.83 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
# EditorConfig helps maintain consistent coding styles across different editors and IDEs
# Documentation: https://editorconfig.org/
# Top-most EditorConfig file
root = true
# Universal settings for all files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
# Markdown files
[*.md]
# Trailing whitespace is significant in Markdown (two spaces = line break)
trim_trailing_whitespace = false
# JavaScript / TypeScript / Web / Config files (2-space indentation)
[*.{js,jsx,ts,tsx,json,yml,yaml}]
indent_size = 2
# Shell scripts (2 spaces common practice)
[*.sh]
indent_size = 2
# Makefiles (must use tabs)
[{Makefile,*.mk}]
indent_style = tab
tab_width = 4
# For full list of Supported Editors: https://editorconfig.org/#pre-installed
#
# Common Properties:
# ------------------
# - indent_style: "space" or "tab"
# - indent_size: number of columns for each indentation level
# - end_of_line: "lf", "cr", or "crlf"
# - charset: "utf-8", "utf-16be", "utf-16le", "latin1"
# - trim_trailing_whitespace: true or false
# - insert_final_newline: true or false
# - max_line_length: number (not supported by all editors)
#
# File Pattern Matching:
# ----------------------
# - * : matches any string of characters (except path separator)
# - ** : matches any string of characters
# - ? : matches any single character
# - [name] : matches any single character in name
# - [!name] : matches any single character not in name
# - {s1,s2,s3} : matches any of the strings given (comma-separated)
#
# For more information and queries:
# - Official Documentation: https://editorconfig.org/
# - Specification: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
# - Plugin Downloads: https://editorconfig.org/#download