From 57e3b4ab80aec6a8fa07583a18f0bacff5c251ec Mon Sep 17 00:00:00 2001 From: Travis Illig Date: Wed, 14 Oct 2020 14:03:48 -0700 Subject: [PATCH] chore: add .editorconfig Add editor formatting for easier adherence to repo standards. Remove .vscode items that shouldn't be here. --- .editorconfig | 32 ++++++++++++++++++++++++++++++++ .vscode/launch.json | 25 ------------------------- 2 files changed, 32 insertions(+), 25 deletions(-) create mode 100644 .editorconfig delete mode 100755 .vscode/launch.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..86fecc82 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100755 index e6b9a242..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -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": [] - } - ] -}