-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
85 lines (76 loc) · 2.7 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
################
# EditorConfig #
################
# [OVERVIEW] 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
# [INFO] Apply another .editorconfig for subfolder, that for root folder
# http://editorconfig.org/#file-format-details
# root = true
# [INFO] 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
# [INFO] ECLint — ignore leading spaces in comments:
# https://www.npmjs.com/package/eclint#support-for-doc-comments
# https://www.npmjs.com/package/eclint#block_comment_start
# [WARNING] Leading spaces doesn't deleted:
# https://github.com/jedmao/eclint/issues/155
block_comment_start = /*
block_comment = *
block_comment_end = */
# Markdown support trailing spaces:
# http://markdown-guide.readthedocs.io/en/latest/basics.html#line-return
[*.md]
trim_trailing_whitespace = false
# [NOTE] YAML doesn't support tabs:
# http://yaml.org/faq.html
# https://stackoverflow.com/a/19976827/5951529
[*.{prettierc,yaml,yml,yamllint}]
indent_style = space
indent_size = 2
# [INFO] Read reasons in “.flake8” file:
# https://github.com/Kristinita/KristinitaPelican/blob/master/.flake8
[*.py]
indent_style = space
# [INFO] 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
# [INFO] “.st” is the extension of “search-index.st” —
# binary subtitles file for the Stork search
# No need to modify this file and check it against EditorConfig rules.
#
# [INFO] Ignore all EditorConfig properties for specific files:
# https://stackoverflow.com/a/40348831/5951529
[*.st]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
tab_width = unset
# [INFO] 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/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset