chore: add .editorconfig

Add editor formatting for easier adherence to repo standards.

Remove .vscode items that shouldn't be here.
This commit is contained in:
Travis Illig 2020-10-14 14:03:48 -07:00 committed by Jan De Dobbeleer
parent ee215b8922
commit 57e3b4ab80
2 changed files with 32 additions and 25 deletions

32
.editorconfig Normal file
View file

@ -0,0 +1,32 @@
; EditorConfig to support per-solution formatting.
; http://editorconfig.org/
; This is the default for the codeline.
root = true
; Default
[*]
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
; Go Code - match go fmt
[*.go]
indent_style = tab
; TOML - match default for dep
[*.toml]
indent_size = 2
; JavaScript and JS mixes - match eslint, other standards
[*.{js,json,ts,vue}]
indent_size = 2
; Markdown - match markdownlint settings
[*.{md,markdown}]
indent_size = 2
; PowerShell - match defaults for New-ModuleManifest and PSScriptAnalyzer Invoke-Formatter
[*.{ps1,psd1,psm1}]
indent_size = 4
charset = utf-8-bom

25
.vscode/launch.json vendored
View file

@ -1,25 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell Launch Current File",
"type": "PowerShell",
"request": "launch",
"script": "${file}",
"cwd": "${file}"
},
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"cwd": "${workspaceFolder}",
"env": {},
"args": []
}
]
}