diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a786b23..0000000 --- a/.eslintignore +++ /dev/null @@ -1,3 +0,0 @@ -dist -node_modules -client diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 9e17846..0000000 --- a/.eslintrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "root": true, - "extends": ["@nuxt/eslint-config"] -} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..eae23ff --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,43 @@ +{ + // 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" + ] +} diff --git a/README.md b/README.md index 46b9629..8ef4db4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![vue-email](https://github.com/vue-email/vue-email/blob/main/public/repo-banner.png?raw=true)](https://vuemail.net) -
[![npm version][npm-version-src]][npm-version-href] @@ -90,7 +89,6 @@ npm run release [MIT](./LICENSE) License © 2023-PRESENT [Vue Email](https://vuemail.net/) - [npm-version-src]: https://img.shields.io/npm/v/@vue-email/nuxt/latest.svg?style=flat&colorA=18181B&colorB=28CF8D [npm-version-href]: https://npmjs.com/package/@vue-email/nuxt diff --git a/client/components/CodeContainer.vue b/client/components/CodeContainer.vue index cf8145f..1eeafdb 100644 --- a/client/components/CodeContainer.vue +++ b/client/components/CodeContainer.vue @@ -59,21 +59,24 @@ const items = computed(() => { code: template.value.txt, }, ] - } else if (editorCode.value.id === 'html') { + } + else if (editorCode.value.id === 'html') { arr.push({ key: 'html', label: 'HTML', icon: 'i-ph-file-html-duotone', code: template.value.html, }) - } else if (editorCode.value.id === 'txt') { + } + else if (editorCode.value.id === 'txt') { arr.push({ key: 'txt', label: 'Plain Text', icon: 'i-ph-text-t-duotone', code: template.value.txt, }) - } else if (editorCode.value.id === 'vue') { + } + else if (editorCode.value.id === 'vue') { arr.push({ key: 'vue', label: 'Vue', @@ -89,9 +92,12 @@ const tab = ref(0)