-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.editorconfig
64 lines (57 loc) · 1.97 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 #
################
# Define and maintain consistent coding styles between different editors and IDEs:
# http://editorconfig.org/
# [NOTE] At the time no existing linters for “.editorconfig” file:
# https://github.com/editorconfig/editorconfig/issues/345
# Apply another .editorconfig for subfolder, that for root folder
# http://editorconfig.org/#file-format-details
# root = true
# UNIX line endings in “.sh” files:
# https://stackoverflow.com/a/49050430/5951529
# Tabs = 4 spaces for CoffeeScript always
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Markdown support trailing spaces:
# http://markdown-guide.readthedocs.io/en/latest/basics.html#line-return
[*.md]
trim_trailing_whitespace = false
# [WARNING] YAML doesn't support tabs:
# http://yaml.org/faq.html
# https://stackoverflow.com/a/19976827/5951529
[*.{yaml,yml,yamllint}]
indent_style = space
indent_size = 2
# Read reasons in “.flake8” file:
# https://github.com/Kristinita/KristinitaPelican/blob/master/.flake8
[*.py]
indent_style = space
# Windows line endings in batch file.
# If LF, user may have some problems:
# for me, incorrect output, if unicode symbols in batch comments
# https://stackoverflow.com/a/38836221/5951529
# https://serverfault.com/a/429598/351829
[*.bat]
end_of_line = crlf
# eclint will not change third-party folders:
# https://stackoverflow.com/a/40348831/5951529
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#current-universal-properties
# [WARNING] Negative eclint glob patterns may doesn't works as expected:
# https://github.com/jedmao/eclint#check
# https://github.com/jedmao/eclint/issues/124
[pelican-plugins/**]
# [FIXED]
# [BUG]: “charset = unset” doesn't work:
# https://github.com/jedmao/eclint/issues/127
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset