Skip to content

Commit 0a00940

Browse files
author
Vic Shóstak
committed
Add editorconfig rule for YAML
1 parent d2a5a2f commit 0a00940

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ insert_final_newline = true
1010
[{Makefile,Dockerfile,go.mod,go.sum,*.go}]
1111
indent_style = tab
1212
indent_size = 4
13+
14+
[{*.yml,*.yaml}]
15+
indent_style = space
16+
indent_size = 4

configs/apiserver.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Server config
22
server:
3-
host: 127.0.0.1
4-
port: 8080
5-
timeout:
6-
read: 15
7-
write: 10
8-
idle: 5
3+
host: 127.0.0.1
4+
port: 8080
5+
timeout:
6+
read: 15
7+
write: 10
8+
idle: 5
99

1010
# Database config
1111
database:
12-
host: 127.0.0.1
13-
port: 5432
14-
username: postgres
15-
password: 1234
12+
host: 127.0.0.1
13+
port: 5432
14+
username: postgres
15+
password: 1234
1616

1717
# Logging config
1818
logging:
19-
level: debug
19+
level: debug
2020

2121
# Static files config
2222
static:
23-
path: /static
23+
path: /static

0 commit comments

Comments
 (0)