-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
101 lines (83 loc) · 2.57 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
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
90
91
92
93
94
95
96
97
98
99
100
101
# ### Editor configuration, see https://editorconfig.org
#
# indent_style: set to tab or space to use hard tabs or soft tabs respectively.
# indent_size: a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). When set to tab, the value of tab_width (if specified) will be used.
# tab_width: a whole number defining the number of columns used to represent a tab character. This defaults to the value of indent_size and doesn't usually need to be specified.
# end_of_line: set to lf, cr, or crlf to control how line breaks are represented.
# charset: set to latin1, utf-8, utf-8-bom, utf-16be or utf-16le to control the character set.
# trim_trailing_whitespace: set to true to remove any whitespace characters preceding newline characters and false to ensure it doesn't.
# insert_final_newline: set to true to ensure file ends with a newline when saving and false to ensure it doesn't.
# ###
root = true
# ###
[*]
charset = utf-8
end_of_line = lf
max_line_length = 120
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
tab_width = 2
# ### Python
[*.{py,ipynb}]
indent_size = 4
# ### JavaScipt
[*.{js,jsx,mjs,cjs}]
indent_size = 2
# quote_type = single
# ### TypeScipt
[{src,scripts}/**.{ts,tsx}]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
#quote_type = single
# ### HTML CSS VUE
[*.{html,htm,css,vue}]
indent_size = 2
# ### json yml
[*.{json,yml,yaml}]
indent_size = 2
[*.min.*]
indent_style = ignore
trim_trailing_whitespace = false
insert_final_newline = ignore
# ###
[*.{sh,cmd,bat}]
indent_size = 2
# ###
[*.{md,mdx,mdwn,mdown,markdown,markdn,mkd,mdtxt,mdtext,workbook}]
max_line_length = off
trim_trailing_whitespace = false
indent_size = unset
[*.{txt, text}]
max_line_length = off
trim_trailing_whitespace = false
indent_size = unset
insert_final_newline = false
# ### .env | .config | *.ini | *.rst
[{*.{rst,ini},.env,.config}]
indent_size = 3
# ### *.gql | *.graphql | *.sql
[*.{gql,graphql,sql}]
indent_size = 2
# ### *.prisma
[*.prisma]
indent_size = 2
# ### Makefile [Tab indentation (size specified)]
[Makefile]
max_line_length = off
indent_style = tab
indent_size = 2
trim_trailing_whitespace = false
# ### package.json | tsconfig.json |.travis.yml
[{package.json,tsconfig.json,.travis.yml}]
indent_style = space
indent_size = 2
# ### docker-compose.y?ml | compose.y?ml | Dockerfile
[{docker-compose.y?ml, compose.y?ml, Dockerfile}]
indent_style = space
indent_size = 2
[CHANGELOG.md]
indent_size = false