-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.editorconfig
More file actions
89 lines (70 loc) · 1.48 KB
/
.editorconfig
File metadata and controls
89 lines (70 loc) · 1.48 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
# top-most EditorConfig file
root = true
# Default settings for all files
[*]
# Line endings
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Indentation
indent_style = space
indent_size = 2
# Character set
charset = utf-8
# Max line length (aligned with Prettier)
max_line_length = 80
# Ensure consistent formatting
quote_type = single
# Specific settings for markdown files
[*.md]
trim_trailing_whitespace = false
max_line_length = off
# TypeScript/JavaScript specific settings
[*.{ts,tsx,js,jsx,mjs,cjs}]
quote_type = single
curly_bracket_next_line = false
spaces_around_operators = true
spaces_around_brackets = inside
indent_brace_style = K&R
# JSON files
[*.{json,jsonc}]
insert_final_newline = false
quote_type = double
# YAML files
[*.{yml,yaml}]
indent_size = 2
quote_type = double
# Shell scripts
[*.{sh,bash,zsh}]
end_of_line = lf
indent_size = 2
# Windows-specific files
[*.{cmd,bat,ps1}]
end_of_line = crlf
indent_size = 4
# Git files
[.git*]
indent_style = tab
# Package files
[{package.json,package-lock.json,pnpm-lock.yaml,bun.lockb,yarn.lock}]
indent_size = 2
quote_type = double
# Configuration files
[*.{toml,ini,env}]
indent_size = 2
# Documentation
[*.{md,mdx,txt}]
indent_size = 2
max_line_length = 100
# CSS/SCSS files
[*.{css,scss,sass,less}]
indent_size = 2
# HTML/Template files
[*.{html,htm,astro,vue,svelte}]
indent_size = 2
# Docker files
[{Dockerfile,*.dockerfile}]
indent_size = 4
# Ignore files
[*.{ignore,gitignore}]
indent_size = 2