Skip to content

Commit

Permalink
Editorconfig and VSC recommendation changes (redwoodjs#1841)
Browse files Browse the repository at this point in the history
* recommend prettier and editorconfig

* add basic editorconfig

* remove prettier extension recommendation

Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
Co-authored-by: David Price <thedavid@thedavidprice.com>
  • Loading branch information
3 people authored Feb 24, 2021
1 parent c64bceb commit 663a55f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig works out of the box with many editors, plugins are available
# for many others - see the website:
# https://EditorConfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf8

[*.{js,jsx,ts,tsx,graphql,sql,md,html,mjml,json,jsonc,json5,yml,yaml,template,sh,Dockerfile}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.{md,html,mjml}]
trim_trailing_whitespace = false

[Dockerfile]
indent_style = space
indent_size = 2
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"mgmcdermott.vscode-language-babel"
],
"unwantedRecommendations": []
"unwantedRecommendations": [
"johnpapa.vscode-peacock" // not used, still tries to apply it's settings
]
}

0 comments on commit 663a55f

Please sign in to comment.