Skip to content

Commit 599ffbd

Browse files
committed
Add explicit config for EditorConfig and Prettier
For some reason in my editor, trailing commas keep getting added. Add explicit configuration for Prettier to ensure this doesn't happen, and go ahead and add EditorConfig while we're at it for the same reasons (and because Prettier reads EditorConfig's config).
1 parent 4965ac0 commit 599ffbd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{rb,js,json,yaml,yml}]
8+
indent_style = space
9+
indent_size = 2
10+
11+
[*.{rb,js}]
12+
max_line_length = 80
13+
114
[README.md]
215
max_line_length = unset

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"bracketSpacing": true,
3+
"trailingComma": "none",
4+
"semi": true
5+
}

0 commit comments

Comments
 (0)