mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 08:46:34 +01:00
Other: Add .editorconfigs
Add `.editorconfig`s, to help maintain a consistent coding style. Also apply the new style to existing files.
This commit is contained in:
parent
f581935f85
commit
2f0ecddfc8
3 changed files with 22 additions and 1 deletions
15
.editorconfig
Normal file
15
.editorconfig
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
charset = utf-8
|
||||||
|
|
||||||
|
[*.{js,json}]
|
||||||
|
indent_size = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
indent_size = 4
|
||||||
|
trim_trailing_whitespace = false
|
||||||
6
docs/.editorconfig
Normal file
6
docs/.editorconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Unset rules for `.js` files in this directory, since they might come from
|
||||||
|
# external sources and therefore shouldn't be affected by this repos
|
||||||
|
# `.editorconfig`.
|
||||||
|
[*.js]
|
||||||
|
indent_size = unset
|
||||||
|
trim_trailing_whitespace = unset
|
||||||
Loading…
Add table
Add a link
Reference in a new issue