Add VSCode and EditorConfig files (#782)

This commit is contained in:
Olivier Bellone 2019-05-23 15:47:37 -07:00 committed by GitHub
parent b26d57c90e
commit ab180e7dfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 0 deletions

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
# see http://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true

7
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"recommendations": [
"rebornix.ruby",
"misogi.ruby-rubocop",
"EditorConfig.editorconfig"
]
}

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
// Rubocop settings
"ruby.rubocop.configFilePath": ".rubocop.yml",
"ruby.rubocop.onSave": true
}