-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.editorconfig
46 lines (36 loc) Β· 1.12 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
# http://editorconfig.org/
# GitHub respects this file to display their diffs / code reviews if in repo root
# Seen in https://github.com/isaacs/github/issues/170 as a way to solve the 8 spaces tabs
root = true
# NOTE: exception to Google Style, which is generally 80
[*]
max_line_length = 100
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
indent_size = tab
# https://google.github.io/styleguide/javaguide.html
[*.java]
indent_style = space
tab_width = 4
# https://google.github.io/styleguide/jsguide.html#formatting-block-indentation
[*.{js,json}]
indent_style = space
tab_width = 2
[*.js]
ij_javascript_use_double_quotes = false
# https://google.github.io/styleguide/htmlcssguide.xml#Indentation
[*.{html,htm,hbs,css,scss,sql}]
indent_style = space
tab_width = 2
# https://developer.hashicorp.com/terraform/language/syntax/style
[*.{tf,tfvars,hcl}]
indent_style = space
tab_width = 2
# TODO: use intellij specific controls?? can't find explicit docs on them exactly
#ij_hcl-terraform_keep_line_breaks = true
#ij_hcl_keep_line_breaks = true
[*.yaml]
indent_style = space
tab_width = 2