Skip to content

Commit

Permalink
Add explicit config for EditorConfig and Prettier
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mcmire committed Jan 30, 2024
1 parent 4965ac0 commit 599ffbd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{rb,js,json,yaml,yml}]
indent_style = space
indent_size = 2

[*.{rb,js}]
max_line_length = 80

[README.md]
max_line_length = unset
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"bracketSpacing": true,
"trailingComma": "none",
"semi": true
}

0 comments on commit 599ffbd

Please sign in to comment.