From 2dcde6b0d853a6f0a660aef7faf3845c7947deaf Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 21 Jun 2024 00:33:07 +0200 Subject: [PATCH] Linted code --- app.config.ts | 4 ++-- app/app.config.ts | 6 +++--- app/components/AppFooter.vue | 15 +++++++++----- app/components/AppHeader.vue | 5 ++++- app/components/content/AIcon.vue | 8 ++++++-- app/components/home/Link.vue | 10 +++++++--- app/pages/index.vue | 2 +- app/pages/uses.vue | 2 +- app/pages/writings/index.vue | 2 +- eslint.config.mjs | 4 ++-- nuxt.config.ts | 34 +++++++++++++++++++------------- tailwind.config.ts | 6 +++--- 12 files changed, 60 insertions(+), 38 deletions(-) diff --git a/app.config.ts b/app.config.ts index 46952a6..b86ac31 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,6 +1,6 @@ export default defineAppConfig({ ui: { primary: 'lime', - gray: 'neutral', + gray: 'neutral' } -}) \ No newline at end of file +}) diff --git a/app/app.config.ts b/app/app.config.ts index 35918f4..7fdceb3 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -3,10 +3,10 @@ export default defineAppConfig({ gray: 'neutral', primary: 'gray', container: { - constrained: 'max-w-3xl', + constrained: 'max-w-3xl' }, icons: { - dynamic: true, + dynamic: true } } -}) \ No newline at end of file +}) diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index 02a4d33..2213c06 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -3,17 +3,17 @@ const socials = [ { icon: 'i-ph-x-logo-bold', label: 'Twitter', - link: 'https://twitter.com/ArthurDanj', + link: 'https://twitter.com/ArthurDanj' }, { icon: 'i-ph-github-logo-bold', label: 'GitHub', - link: 'https://github.com/ArthurDanjou', + link: 'https://github.com/ArthurDanjou' }, { icon: 'i-ph-linkedin-logo-bold', label: 'LinkedIn', - link: 'https://www.linkedin.com/in/arthurdanjou/', + link: 'https://www.linkedin.com/in/arthurdanjou/' } ] @@ -21,7 +21,11 @@ const socials = [ diff --git a/app/pages/index.vue b/app/pages/index.vue index e247762..5ca5639 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -2,4 +2,4 @@
- \ No newline at end of file + diff --git a/app/pages/uses.vue b/app/pages/uses.vue index f3a5ec2..62e1f45 100644 --- a/app/pages/uses.vue +++ b/app/pages/uses.vue @@ -10,4 +10,4 @@ \ No newline at end of file + diff --git a/app/pages/writings/index.vue b/app/pages/writings/index.vue index 0323dae..4186373 100644 --- a/app/pages/writings/index.vue +++ b/app/pages/writings/index.vue @@ -10,4 +10,4 @@ \ No newline at end of file + diff --git a/eslint.config.mjs b/eslint.config.mjs index ae8ad51..934c3a1 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -2,5 +2,5 @@ import withNuxt from './.nuxt/eslint.config.mjs' export default withNuxt( - // Your custom configs here -) \ No newline at end of file + // Your custom configs here +) diff --git a/nuxt.config.ts b/nuxt.config.ts index 1722dbe..a9bc067 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -8,36 +8,36 @@ export default defineNuxtConfig({ '@nuxt/ui', '@nuxt/content', '@vueuse/nuxt', - "@nuxtjs/google-fonts" + '@nuxtjs/google-fonts' ], hub: { - cache: true, + cache: true }, app: { - pageTransition: { name: "page", mode: "out-in" }, + pageTransition: { name: 'page', mode: 'out-in' } }, content: { highlight: { - theme: "github-dark", - }, + theme: 'github-dark' + } }, colorMode: { - preference: "light", - fallback: "light", + preference: 'light', + fallback: 'light' }, ui: { - icons: ["heroicons", "logos", "ph"], + icons: ['heroicons', 'logos', 'ph'] }, devtools: { enabled: true, - timeline: { enabled: true, } + timeline: { enabled: true } }, eslint: { @@ -50,11 +50,17 @@ export default defineNuxtConfig({ }, googleFonts: { - display: "swap", + display: 'swap', families: { - Inter: [400, 500, 600, 700, 800, 900], + 'Inter': [400, 500, 600, 700, 800, 900], 'Sofia Sans': [400], - 'DM Sans': [400, 500, 600, 700, 800, 900], - }, + 'DM Sans': [400, 500, 600, 700, 800, 900] + } }, -}) \ No newline at end of file + + nitro: { + experimental: { + openAPI: true + } + } +}) diff --git a/tailwind.config.ts b/tailwind.config.ts index 3334f73..2ba106e 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,5 +1,5 @@ -import type { Config } from "tailwindcss" -import typography from "@tailwindcss/typography" +import type { Config } from 'tailwindcss' +import typography from '@tailwindcss/typography' export default >{ content: [ @@ -16,5 +16,5 @@ export default >{ './app.config.{js,ts}', 'content/**/*.md' ], - plugins: [typography], + plugins: [typography] }