chore: add dev configs (prettier, editorconfig, vscode settings)
This commit is contained in:
12
.editorconfig
Normal file
12
.editorconfig
Normal 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
6
.prettierignore
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
out/
|
||||||
|
dist/
|
||||||
|
release/
|
||||||
|
node_modules/
|
||||||
|
*.min.js
|
||||||
|
*.min.css
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"printWidth": 180
|
"printWidth": 200,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": false
|
||||||
}
|
}
|
||||||
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "editorconfig.editorconfig", "lokalise.i18n-ally"]
|
||||||
|
}
|
||||||
21
.vscode/settings.json
vendored
21
.vscode/settings.json
vendored
@@ -1,11 +1,14 @@
|
|||||||
{
|
{
|
||||||
"i18n-ally.localesPaths": [
|
"i18n-ally.localesPaths": ["src/renderer/src/locales"],
|
||||||
"src/renderer/src/locales"
|
"i18n-ally.keystyle": "nested",
|
||||||
],
|
"i18n-ally.namespace": true,
|
||||||
"i18n-ally.keystyle": "nested",
|
"i18n-ally.sourceLanguage": "zh-CN",
|
||||||
"i18n-ally.namespace": true,
|
"i18n-ally.enabledParsers": ["json"],
|
||||||
"i18n-ally.sourceLanguage": "zh-CN",
|
|
||||||
"i18n-ally.enabledParsers": [
|
"editor.formatOnSave": true,
|
||||||
"json"
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
],
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": "explicit"
|
||||||
|
},
|
||||||
|
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user