-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
34 lines (28 loc) · 1004 Bytes
/
.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
# EditorConfig helps maintain consistent coding styles across different editors and IDEs
# Root-level configuration
root = true
# General settings for all files
[*]
charset = utf-8
end_of_line = lf
indent_style = tab # As per your Prettier config, tabs are used for indentation
indent_size = 4 # As per your Prettier config, indentation size is 4 spaces
insert_final_newline = true
trim_trailing_whitespace = true
# Match JavaScript/TypeScript files
[*.{js,ts}]
indent_style = tab
indent_size = 4
quote_type = single # Enforces single quotes, aligning with Prettier
# Match JSON files
[*.json]
indent_style = space
indent_size = 2 # JSON typically uses 2 spaces for indentation
quote_type = double # JSON requires double quotes
# Match CSS/SCSS files
[*.{css,scss}]
indent_style = space
indent_size = 2 # 2 spaces is a common convention for CSS/SCSS
# Ignore minified files, build outputs, and node modules
[**/dist/**, **/build/**, **/node_modules/**]
indent_style = ignore