mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Configure editors to explicitly use LF / \n line endings (#10916)
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
root = true
|
||||
|
||||
[*.{py,pyi,rst,md,yml,yaml,toml,json,txt}]
|
||||
[*]
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.{py,pyi,toml,json}]
|
||||
indent_size = 4
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_size = 2
|
||||
|
||||
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1,3 +1,6 @@
|
||||
# Normalize EOF
|
||||
* autocrlf=false
|
||||
* eol=lf
|
||||
# Set linguist-language to support comments syntax highlight
|
||||
**/stubtest_allowlist*.txt linguist-language=ini
|
||||
tests/stubtest_allowlists/*.txt linguist-language=ini
|
||||
|
||||
3
.vscode/settings.default.json
vendored
3
.vscode/settings.default.json
vendored
@@ -24,6 +24,7 @@
|
||||
"**/.*_cache": true, // mypy and Ruff cache
|
||||
"**/__pycache__": true
|
||||
},
|
||||
"files.eol": "\n",
|
||||
"files.insertFinalNewline": true,
|
||||
"files.trimFinalNewlines": true,
|
||||
"files.trimTrailingWhitespace": true,
|
||||
@@ -31,7 +32,7 @@
|
||||
"editor.insertSpaces": true,
|
||||
"editor.detectIndentation": false,
|
||||
"editor.tabSize": 2,
|
||||
"[json][jsonc][python]": {
|
||||
"[json][jsonc][python][toml]": {
|
||||
"editor.tabSize": 4
|
||||
},
|
||||
"editor.rulers": [
|
||||
|
||||
Reference in New Issue
Block a user