mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
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:
parent
ee215b8922
commit
57e3b4ab80
32
.editorconfig
Normal file
32
.editorconfig
Normal 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
25
.vscode/launch.json
vendored
|
@ -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": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in a new issue