Add editor configs

Add .editorconfig, .vscode and .gitattributes configs to make editors
and tools aware that the files use unix line indeings and are indentent
with tabs.
This commit is contained in:
Hornwitser 2025-02-26 12:05:32 +01:00
parent 9163ca63a9
commit e20aef2f32
3 changed files with 34 additions and 0 deletions

20
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,20 @@
{
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json, env.d.ts",
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
"package.json": "package-lock.json, bun.lockb, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*"
},
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.detectIndentation": false,
"editor.insertSpaces": false,
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"[yaml]": {
"editor.indentSize": 2,
"editor.insertSpaces": true,
},
}