-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
64 lines (53 loc) · 2.24 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
# EditorConfig is awesome: https://EditorConfig.org
# Universal Properties Widely Supported by Editors
# ------------------------------------------------
# root : special property that should be specified at the top of the file outside of any sections. Set to true to stop .editorconfig files search on current file.
# 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.
# top-most EditorConfig file
root = true
# Start with sane settings for all files
[*]
indent_style = space
indent_size = 4
tab_width = unset
end_of_line = lf
charset = unset
trim_trailing_whitespace = true
insert_final_newline = true
# HDL source files: 2 space indentation
[*.{v,vhd}]
indent_size = 2
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
# Ignore paths
[{hdlmake/**,**/ip/**}]
indent_style = unset
indent_size = unset
tab_width = unset
end_of_line = unset
charset = unset
trim_trailing_whitespace = unset
insert_final_newline = unset