From b8e271774134117a71bff589d999b3f2257fb908 Mon Sep 17 00:00:00 2001 From: AaronHux Date: Sat, 25 May 2024 14:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 9 ------ .vscode/settings.json | 46 +++++++++++++++++++++++++++++ components/Footer.vue | 2 +- components/header/mobile-nav.vue | 2 +- components/section/GradientCard.vue | 2 +- eslint.config.mjs | 6 ++++ nuxt.config.ts | 4 +-- package.json | 33 ++++++++++----------- pages/community/vamx/index.vue | 6 ++-- pages/community/vamx/join.vue | 4 +-- pages/community/vamx/news.vue | 2 +- pages/community/vamx/structure.vue | 4 +-- pages/index.vue | 12 ++++---- pages/release/index.vue | 6 ++-- pages/solutions.vue | 2 +- pages/solutions/aigc.vue | 4 +-- pages/solutions/digital-twin.vue | 4 +-- pages/solutions/mixed-reality.vue | 4 +-- pages/solutions/web3.vue | 4 +-- uno.config.ts | 10 +++---- 20 files changed, 103 insertions(+), 63 deletions(-) delete mode 100644 .eslintrc create mode 100644 eslint.config.mjs diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index fde5836..0000000 --- a/.eslintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": [ - "@antfu", - "@unocss" - ], - "rules": { - "@typescript-eslint/ban-ts-comment":"off" - } -} diff --git a/.vscode/settings.json b/.vscode/settings.json index 7839ae1..06bf150 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,5 +10,51 @@ "typescript.tsdk": "node_modules/typescript/lib", "i18n-ally.localesPaths": [ "locales" + ], + // Enable the ESlint flat config support + // (remove this if your ESLint extension above v3.0.5) + "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", + "xml", + "gql", + "graphql", + "astro" ] } diff --git a/components/Footer.vue b/components/Footer.vue index 89447dc..1fa5cab 100644 --- a/components/Footer.vue +++ b/components/Footer.vue @@ -6,7 +6,7 @@ const footer = useFoot()