Skip to content

Commit 5bde9fb

Browse files
committed
Tweak settings / editorconfig
1 parent cdf5c1c commit 5bde9fb

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.editorconfig

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# EditorConfig is awesome: http://EditorConfig.org
2-
#
3-
# Settings follow https://github.com/PowerShell/PowerShellEditorServices/blob/master/.editorconfig
4-
5-
# top-most EditorConfig file
6-
root = true
72

83
[*]
94
indent_style = space
105
insert_final_newline = true
6+
end_of_line = crlf
7+
8+
[*.{ps1,psm1,psd1}]
9+
indent_size = 4
10+
trim_trailing_whitespace = true
1111

1212
[*.{cs}]
1313
indent_size = 4
@@ -17,9 +17,5 @@ trim_trailing_whitespace = true
1717
indent_size = 2
1818
trim_trailing_whitespace = true
1919

20-
[*.{ps1,psm1,psd1}]
21-
indent_size = 4
22-
trim_trailing_whitespace = true
23-
2420
[*.{ps1xml,props,xml,yaml,yml}]
2521
indent_size = 2

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"powershell.codeFormatting.preset": "OTBS",
88
"powershell.codeFormatting.ignoreOneLineBlock": false,
99
"powershell.codeFormatting.newLineAfterCloseBrace": false,
10+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
11+
"powershell.codeFormatting.alignPropertyValuePairs": true,
12+
"powershell.codeFormatting.autoCorrectAliases": true,
13+
"powershell.codeFormatting.useCorrectCasing": true,
1014
"files.associations": {
1115
"*.ps1xml": "xml"
1216
}

Source/ModuleBuilder.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@{
22
# The module version should be SemVer.org compatible
3-
ModuleVersion = "1.1.0"
3+
ModuleVersion = "0.0.0"
44

55
# PrivateData is where all third-party metadata goes
66
PrivateData = @{
77
# PrivateData.PSData is the PowerShell Gallery data
88
PSData = @{
99
# Prerelease string should be here, so we can set it
10-
Prerelease = 'beta'
10+
Prerelease = 'source'
1111

1212
# Release Notes have to be here, so we can update them
1313
ReleaseNotes = '

Source/ModuleBuilder.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
foreach ($file in Get-ChildItem "Private", "Public") {
2+
. $file.FullName
3+
}

0 commit comments

Comments
 (0)