diff --git a/EasyTier.code-workspace b/EasyTier.code-workspace new file mode 100644 index 0000000..ce8c3a8 --- /dev/null +++ b/EasyTier.code-workspace @@ -0,0 +1,91 @@ +{ + "folders": [ + { + "path": "." + }, + { + "path": "easytier-gui" + }, + { + "path": "easytier" + } + ], + "recommendations": [ + "vue.volar", + "dbaeumer.vscode-eslint" + ], + "settings": { + "i18n-ally.localesPaths": [ + "locales" + ], + // Enable the ESlint flat config support + "eslint.experimental.useFlatConfig": true, + // Disable the default formatter, use eslint instead + "prettier.enable": false, + "editor.formatOnSave": false, + // Auto fix + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" + }, + // Silent the stylistic rules in you IDE, but still auto fix them + "eslint.rules.customizations": [ + { + "rule": "style/*", + "severity": "off" + }, + { + "rule": "format/*", + "severity": "off" + }, + { + "rule": "*-indent", + "severity": "off" + }, + { + "rule": "*-spacing", + "severity": "off" + }, + { + "rule": "*-spaces", + "severity": "off" + }, + { + "rule": "*-order", + "severity": "off" + }, + { + "rule": "*-dangle", + "severity": "off" + }, + { + "rule": "*-newline", + "severity": "off" + }, + { + "rule": "*quotes", + "severity": "off" + }, + { + "rule": "*semi", + "severity": "off" + } + ], + // Enable eslint for all supported languages + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "markdown", + "json", + "jsonc", + "yaml", + "toml", + "gql", + "graphql" + ] + } +} \ No newline at end of file diff --git a/easytier-gui/.prettierrc.json b/easytier-gui/.prettierrc.json deleted file mode 100644 index b2095be..0000000 --- a/easytier-gui/.prettierrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "semi": false, - "singleQuote": true -}