From 054c8c84a771ba3d92590bb5260fa6e88b632ba3 Mon Sep 17 00:00:00 2001 From: gabaldon Date: Tue, 17 Dec 2024 18:35:19 +0100 Subject: [PATCH] feat: update eslint to v9 --- .eslintrc.cjs | 14 - components/AnimatedArrow.vue | 2 +- components/DownloadNodeBtn.vue | 60 + components/LanguageSwitcher.vue | 184 -- components/MailchimpEmbed.vue | 20 +- components/RotateOnScroll.vue | 2 +- components/sections/BuySection.vue | 5 +- components/sections/CoinSection.vue | 50 +- components/sections/HeroSection.vue | 8 +- components/sections/PalmSectionBase.vue | 2 +- components/sections/SectionBase.vue | 6 +- components/sections/SecureSection.vue | 5 +- components/sections/WhatIsWitnetSection.vue | 4 +- constants.ts | 4 + error.vue | 2 +- eslint.config.js | 59 + layouts/default.vue | 2 +- layouts/navbar.vue | 4 +- layouts/section.vue | 8 +- nuxt.config.ts | 2 + package.json | 15 +- pnpm-lock.yaml | 2278 +++++-------------- ts-shim.d.ts | 1 + tsconfig.json | 5 +- types.ts | 8 + utils/getBrowserOs.ts | 33 +- utils/getLatestRelease.ts | 76 +- 27 files changed, 876 insertions(+), 1983 deletions(-) delete mode 100644 .eslintrc.cjs create mode 100644 components/DownloadNodeBtn.vue delete mode 100644 components/LanguageSwitcher.vue create mode 100644 eslint.config.js create mode 100644 ts-shim.d.ts diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index f7904474..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - root: true, - env: { - browser: true, - node: true, - }, - parser: 'vue-eslint-parser', - parserOptions: { - parser: '@typescript-eslint/parser', - }, - extends: ['@nuxtjs/eslint-config-typescript', 'plugin:prettier/recommended'], - plugins: [], - rules: {}, -} diff --git a/components/AnimatedArrow.vue b/components/AnimatedArrow.vue index c0269232..01a416e2 100644 --- a/components/AnimatedArrow.vue +++ b/components/AnimatedArrow.vue @@ -1,6 +1,6 @@ diff --git a/components/DownloadNodeBtn.vue b/components/DownloadNodeBtn.vue new file mode 100644 index 00000000..9a57e323 --- /dev/null +++ b/components/DownloadNodeBtn.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/components/LanguageSwitcher.vue b/components/LanguageSwitcher.vue deleted file mode 100644 index 7a5bbfc1..00000000 --- a/components/LanguageSwitcher.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - diff --git a/components/MailchimpEmbed.vue b/components/MailchimpEmbed.vue index c6f5d525..152d1da4 100644 --- a/components/MailchimpEmbed.vue +++ b/components/MailchimpEmbed.vue @@ -3,7 +3,7 @@ href="//cdn-images.mailchimp.com/embedcode/classic-061523.css" rel="stylesheet" type="text/css" - /> + > + >
- - + diff --git a/components/RotateOnScroll.vue b/components/RotateOnScroll.vue index c6695a15..8e8f3dd6 100644 --- a/components/RotateOnScroll.vue +++ b/components/RotateOnScroll.vue @@ -1,6 +1,6 @@ diff --git a/components/sections/BuySection.vue b/components/sections/BuySection.vue index df2e6cf8..059945cd 100644 --- a/components/sections/BuySection.vue +++ b/components/sections/BuySection.vue @@ -37,10 +37,11 @@