Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: unifying vscode settings (#568)

Liu Ji8abec5e1b86b
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 0000000000..91fcae581b
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ "recommendations": [
+ "johnsoncodehk.volar",
+ "dbaeumer.vscode-eslint",
+ "lokalise.i18n-ally",
+ "antfu.iconify",
+ "esbenp.prettier-vscode",
+ "bradlc.vscode-tailwindcss"
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2679abbb3d..3fa7a1a668 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -9,17 +9,31 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
- "i18n-ally.localesPaths": [
- "frontend/src/locales"
- ],
+ "files.associations": {
+ "*.vue": "vue"
+ },
+ "[javascript]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[typescript]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[json]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[jsonc]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[vue]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "i18n-ally.localesPaths": ["frontend/src/locales"],
"i18n-ally.enabledParsers": ["yaml"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "en",
"i18n-ally.editor.preferEditor": true,
- "i18n-ally.enabledFrameworks": [
- "vue"
- ],
+ "i18n-ally.enabledFrameworks": ["vue"],
"go.lintOnSave": "workspace",
- "go.lintTool": "golint",
+ "go.lintTool": "golint"
}
diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index 4039b30b2e..fb08626ff1 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -13,6 +13,16 @@ module.exports = {
rules: {
"no-empty-pattern": "warn",
"no-useless-escape": "warn",
+ "prettier/prettier": [
+ "warn",
+ {
+ useTabs: false,
+ tabWidth: 2,
+ singleQuote: false,
+ trailingComma: "es5",
+ printWidth: 80,
+ },
+ ],
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
diff --git a/frontend/.vscode/extensions.json b/frontend/.vscode/extensions.json
index aab1eb7cc4..91fcae581b 100644
--- a/frontend/.vscode/extensions.json
+++ b/frontend/.vscode/extensions.json
@@ -1,7 +1,10 @@
{
"recommendations": [
"johnsoncodehk.volar",
+ "dbaeumer.vscode-eslint",
"lokalise.i18n-ally",
- "antfu.iconify"
+ "antfu.iconify",
+ "esbenp.prettier-vscode",
+ "bradlc.vscode-tailwindcss"
]
-}
\ No newline at end of file
+}
diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json
index 326b9ea340..d7184d4146 100644
--- a/frontend/.vscode/settings.json
+++ b/frontend/.vscode/settings.json
@@ -14,5 +14,23 @@
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
+ },
+ "files.associations": {
+ "*.vue": "vue"
+ },
+ "[javascript]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[typescript]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[json]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[jsonc]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[vue]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
}
}