Skip to content

Commit

Permalink
added correct file handling for shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Jan 10, 2024
1 parent 003b011 commit 8cea4f7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.sh]
end_of_line = lf


[*.{md,yml,yaml}]
trim_trailing_whitespace = false

Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG.md merge=union
* text=auto

# Explicitly declare text files we want to always be normalized.
*.sh text eol=lf
*.md text eol=crlf
*.gitattributes text eol=crlf
*.gitignore text eol=crlf
Expand Down
1 change: 1 addition & 0 deletions .vscode/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json linguist-language=JSON-with-Comments
18 changes: 9 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,

"editor.tabSize": 4,
"editor.insertSpaces": true,

// https://en.wikipedia.org/wiki/Indentation_style#Styles
"powershell.codeFormatting.preset": "Stroustrup",
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",

"[shellscript]": {
"files.eol": "\n"
},
"[markdown]": {
"editor.tabSize": 2,
"editor.trimAutoWhitespace": false,
Expand All @@ -21,22 +21,22 @@
"[yaml]": {
"editor.tabSize": 2
},

"markdownlint.config": {
"MD009": false,
"MD024": false,
"MD025": false,
"MD028": false
},
"cSpell.dictionaryDefinitions": [{
"name": "customDictionary",
"path": "./.spelling"
}],
"cSpell.dictionaryDefinitions": [
{
"name": "customDictionary",
"path": "./.spelling"
}
],
"cSpell.dictionaries": [
"customDictionary"
],
"cSpell.language": "en"

// Recomendations for "USER SETTINGS":
// "editor.formatOnType": true,
// "editor.formatOnPaste": true,
Expand Down

0 comments on commit 8cea4f7

Please sign in to comment.