chore: add dev configs (prettier, editorconfig, vscode settings)

This commit is contained in:
2026-03-18 00:21:47 +08:00
parent fca824beea
commit 3de55b83f0
5 changed files with 42 additions and 16 deletions

12
.editorconfig Normal file
View File

@@ -0,0 +1,12 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

6
.prettierignore Normal file
View File

@@ -0,0 +1,6 @@
out/
dist/
release/
node_modules/
*.min.js
*.min.css

View File

@@ -1,5 +1,7 @@
{
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 180
}
{
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 200,
"semi": true,
"singleQuote": false
}

3
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "editorconfig.editorconfig", "lokalise.i18n-ally"]
}

25
.vscode/settings.json vendored
View File

@@ -1,11 +1,14 @@
{
"i18n-ally.localesPaths": [
"src/renderer/src/locales"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.namespace": true,
"i18n-ally.sourceLanguage": "zh-CN",
"i18n-ally.enabledParsers": [
"json"
],
}
{
"i18n-ally.localesPaths": ["src/renderer/src/locales"],
"i18n-ally.keystyle": "nested",
"i18n-ally.namespace": true,
"i18n-ally.sourceLanguage": "zh-CN",
"i18n-ally.enabledParsers": ["json"],
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}