diff --git a/.editorconfig b/.editorconfig index c414842..9fc7bb7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,7 +16,7 @@ insert_final_newline = false [*.{ba,,z}sh] indent_style = tab -indent_size = 4 +tab_width = 4 [*.json] indent_size = 4 diff --git a/.vscode/settings.json b/.vscode/settings.json index a91c7f5..37aef23 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { "editor.formatOnPaste": true, + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "modificationsIfAvailable", "json.schemas": [ { "fileMatch": [ @@ -18,21 +20,34 @@ "url": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json" }, { - "fileMatch": [ ".pre-commit-config.yaml" ], + "fileMatch": [ + ".pre-commit-config.yaml" + ], "url": "https://json.schemastore.org/pre-commit-config.json" }, { - "fileMatch": [ "package.json" ], + "fileMatch": [ + "package.json" + ], "url": "https://json.schemastore.org/package.json" }, { - "fileMatch": [ "Pulumi.yaml" ], + "fileMatch": [ + "Pulumi.yaml" + ], "url": "https://json.schemastore.org/pulumi.json" } ], "markdown.extension.toc.levels": "2..6", "markdown.extension.toc.orderedList": true, + "markdown.validate.enabled": true, + "[markdown]": { + "editor.rulers": [ + 120 + ], + "editor.wordWrap": "off" + }, "cSpell.language": "en,en-GB", "cSpell.words": [ @@ -40,6 +55,8 @@ "airgap", "airgapped", "apiserver", + "asciicast", + "asciinema", "autoscaler", "autoscalers", "awscli", @@ -169,6 +186,7 @@ "roff", "rootlv", "rootvg", + "runbook", "runcmd", "runtimes", "sata", @@ -188,7 +206,7 @@ "sysrc", "systool", "tclsh", - "TCSH", + "tcsh", "templating", "tfvars", "tmpfs", diff --git a/examples/dotfiles/.editorconfig b/examples/dotfiles/.editorconfig index f5c89b5..1e8e8b6 100644 --- a/examples/dotfiles/.editorconfig +++ b/examples/dotfiles/.editorconfig @@ -1,6 +1,7 @@ # EditorConfig is awesome: https://EditorConfig.org +# Config file specs: https://spec.editorconfig.org -# top-most EditorConfig file +# This shall be the top-most EditorConfig file root = true # Unix-style newlines with a newline ending every file @@ -8,12 +9,13 @@ root = true end_of_line = lf insert_final_newline = true -# Matches multiple files with brace expansion notation -# Set default charset +# Match multiple files with brace expansion notation +# Set the default charset and spelling check language [*.{js,py}] charset = utf-8 +spelling_language = en-US -# 4 space indentation +# 4 spaces indentation [*.py] indent_style = space indent_size = 4 @@ -28,6 +30,13 @@ indent_style = space indent_size = 2 # Matches the exact files either package.json or .travis.yml +# Tab indentation (size specified) [{package.json,.travis.yml}] -indent_style = space -indent_size = 2 +indent_style = tab +tab_width = 4 + +# Allow the use of double spaces for line breaks +# Stop using spell checking +[*.md] +trim_trailing_whitespace = false +spelling_language = unset