Skip to content

Commit 0475048

Browse files
authored
chore: Fix tf format and add Editor config (#11)
1 parent 6663517 commit 0475048

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
# Override for Makefile
11+
[{Makefile,makefile,GNUmakefile}]
12+
indent_style = tab
13+
indent_size = 4
14+
15+
[Makefile.*]
16+
indent_style = tab
17+
indent_size = 4
18+
19+
[{*.yaml,*.yml,*.md}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[*.sh]
24+
indent_style = tab
25+
indent_size = 2
26+
27+
[*.{tf,tfvars,tpl,variant}]
28+
indent_style = space
29+
indent_size = 2
30+
31+
[*.json]
32+
insert_final_newline = false

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"extends": [
44
"config:base"
55
]
6-
}
6+
}

.github/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ repository:
55
description: This component is responsible for deploying an API Gateway REST API
66
homepage: https://cloudposse.com/accelerate
77
topics: terraform, terraform-component
8+

docs/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/context.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ variable "descriptor_formats" {
264264
Describe additional descriptors to be output in the `descriptors` output map.
265265
Map of maps. Keys are names of descriptors. Values are maps of the form
266266
`{
267-
format = string
268-
labels = list(string)
267+
format = string
268+
labels = list(string)
269269
}`
270270
(Type is `any` so the map values can later be enhanced to provide additional options.)
271271
`format` is a Terraform format string to be passed to the `format()` function.

0 commit comments

Comments
 (0)