-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
61 lines (51 loc) · 2.24 KB
/
.editorconfig
File metadata and controls
61 lines (51 loc) · 2.24 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
# This file helps maintain consistent coding styles across different editors and IDEs,
# [cite_start]which is great for collaborative projects[cite: 1].
# [cite_start]For more information on EditorConfig, visit http://editorconfig.org[cite: 2].
# ==============================================================================
# Base Settings
# ==============================================================================
# Denotes that this is the root of the project and that editors should stop searching
# [cite_start]for further configuration files in parent directories[cite: 2].
root = true
# ==============================================================================
# General Rules for All Files
# [cite_start]Applies to all files not otherwise specified below[cite: 2].
# ==============================================================================
[*]
# The character used for indentation: 'space' or 'tab'.
indent_style = space
# [cite_start]The number of columns for indentation[cite: 2].
indent_size = 4
# The line ending to use. [cite_start]'lf' (line feed) is the standard for Linux and macOS[cite: 2].
end_of_line = lf
# The character set to use for the file.
charset = utf-8
# [cite_start]Removes any whitespace from the end of a line[cite: 2].
trim_trailing_whitespace = true
# [cite_start]Ensures that a blank newline is inserted at the end of the file[cite: 2].
insert_final_newline = true
# Sets the maximum number of characters allowed on a single line. This helps with readability.
max_line_length = 80
# ==============================================================================
# Specific Rules for Common File Types
# ==============================================================================
# JavaScript and JSON files
[*.{js,json}]
# A common convention for JavaScript is 2 spaces for indentation.
indent_size = 2
# HTML files
[*.html]
# A common convention for HTML is 2 spaces for indentation.
indent_size = 2
# CSS files
[*.css]
# A common convention for CSS is 2 spaces for indentation.
indent_size = 2
# Markdown files
[*.md]
# Markdown files often allow for longer lines to accommodate long links or sentences.
max_line_length = 100
# Python files
[*.py]
# Python's PEP 8 style guide recommends 4 spaces for indentation.
indent_size = 4