Ajout fichier .prettierignore.
Installation module vuetify + modif script lint dans package.json.
Showing
8 changed files
with
42 additions
and
29 deletions
| 1 | // https://nuxt.com/docs/api/configuration/nuxt-config | 1 | // https://nuxt.com/docs/api/configuration/nuxt-config |
| 2 | export default defineNuxtConfig({ | 2 | export default defineNuxtConfig({ |
| 3 | - compatibilityDate: '2024-11-01', | 3 | + compatibilityDate: "2024-11-01", |
| 4 | devtools: { enabled: true }, | 4 | devtools: { enabled: true }, |
| 5 | 5 | ||
| 6 | app: { | 6 | app: { |
| 7 | head: { | 7 | head: { |
| 8 | - title: 'TMDB Movie App', | 8 | + title: "TMDB Movie App", |
| 9 | htmlAttrs: { | 9 | htmlAttrs: { |
| 10 | lang: "fr", | 10 | lang: "fr", |
| 11 | }, | 11 | }, |
| 12 | meta: [ | 12 | meta: [ |
| 13 | - { charset: 'utf-8' }, | 13 | + { charset: "utf-8" }, |
| 14 | - { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | 14 | + { name: "viewport", content: "width=device-width, initial-scale=1" }, |
| 15 | - { name: 'description', content: 'Application de films utilisant l\'API TMDB' }, | 15 | + { name: "description", content: "Application de films utilisant l'API TMDB" }, |
| 16 | { name: "format-detection", content: "telephone=no" }, | 16 | { name: "format-detection", content: "telephone=no" }, |
| 17 | ], | 17 | ], |
| 18 | - link: [ | 18 | + link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }], |
| 19 | - { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | 19 | + }, |
| 20 | - ] | ||
| 21 | - } | ||
| 22 | }, | 20 | }, |
| 23 | 21 | ||
| 24 | // css: ['~/assets/css/main.scss'], | 22 | // css: ['~/assets/css/main.scss'], |
| 25 | 23 | ||
| 26 | modules: [ | 24 | modules: [ |
| 27 | - '@nuxt/eslint', | 25 | + "@nuxt/eslint", |
| 28 | - '@nuxt/icon', | 26 | + "@nuxt/icon", |
| 29 | - '@nuxt/image', | 27 | + "@nuxt/image", |
| 30 | [ | 28 | [ |
| 31 | "@pinia/nuxt", | 29 | "@pinia/nuxt", |
| 32 | { | 30 | { |
| @@ -37,18 +35,19 @@ export default defineNuxtConfig({ | @@ -37,18 +35,19 @@ export default defineNuxtConfig({ | ||
| 37 | ], | 35 | ], |
| 38 | }, | 36 | }, |
| 39 | ], | 37 | ], |
| 40 | - 'pinia-plugin-persistedstate/nuxt', | 38 | + "pinia-plugin-persistedstate/nuxt", |
| 41 | - '@nuxt/scripts', | 39 | + "@nuxt/scripts", |
| 42 | - '@nuxt/test-utils', | 40 | + "@nuxt/test-utils", |
| 43 | - '@nuxt/ui', | 41 | + "@nuxt/ui", |
| 44 | - '@nuxtjs/tailwindcss', | 42 | + "@nuxtjs/tailwindcss", |
| 45 | - '@vueuse/nuxt', | 43 | + "@vueuse/nuxt", |
| 44 | + "vuetify-nuxt-module", | ||
| 46 | ], | 45 | ], |
| 47 | // Persisted state config. | 46 | // Persisted state config. |
| 48 | piniaPluginPersistedstate: { | 47 | piniaPluginPersistedstate: { |
| 49 | - storage: 'localStorage', | 48 | + storage: "localStorage", |
| 50 | cookieOptions: { | 49 | cookieOptions: { |
| 51 | - sameSite: 'lax', | 50 | + sameSite: "lax", |
| 52 | }, | 51 | }, |
| 53 | debug: true, | 52 | debug: true, |
| 54 | }, | 53 | }, |
| @@ -63,4 +62,13 @@ export default defineNuxtConfig({ | @@ -63,4 +62,13 @@ export default defineNuxtConfig({ | ||
| 63 | apiTMDBUrl: process.env.NUXT_ENV_TMDB_URL, | 62 | apiTMDBUrl: process.env.NUXT_ENV_TMDB_URL, |
| 64 | }, | 63 | }, |
| 65 | }, | 64 | }, |
| 66 | -}) | 65 | + |
| 66 | + vuetify: { | ||
| 67 | + moduleOptions: { | ||
| 68 | + /* module specific options */ | ||
| 69 | + }, | ||
| 70 | + vuetifyOptions: { | ||
| 71 | + /* vuetify options */ | ||
| 72 | + }, | ||
| 73 | + }, | ||
| 74 | +}); |
This diff is collapsed. Click to expand it.
| @@ -9,7 +9,9 @@ | @@ -9,7 +9,9 @@ | ||
| 9 | "generate": "nuxt generate", | 9 | "generate": "nuxt generate", |
| 10 | "preview": "nuxt preview", | 10 | "preview": "nuxt preview", |
| 11 | "postinstall": "nuxt prepare", | 11 | "postinstall": "nuxt prepare", |
| 12 | - "lint": "eslint .", | 12 | + "lint:js": "eslint --ext \".ts,.vue\" .", |
| 13 | + "lint:prettier": "prettier --write .", | ||
| 14 | + "lint": "npm run lint:js && npm run lint:prettier", | ||
| 13 | "format": "prettier --write \"{components,pages,plugins,middleware,layouts,composables,assets}/**/*.{js,jsx,ts,tsx,vue,html,css,scss,json,md}\"" | 15 | "format": "prettier --write \"{components,pages,plugins,middleware,layouts,composables,assets}/**/*.{js,jsx,ts,tsx,vue,html,css,scss,json,md}\"" |
| 14 | }, | 16 | }, |
| 15 | "dependencies": { | 17 | "dependencies": { |
| @@ -28,7 +30,8 @@ | @@ -28,7 +30,8 @@ | ||
| 28 | "pinia": "^3.0.2", | 30 | "pinia": "^3.0.2", |
| 29 | "pinia-plugin-persistedstate": "^4.2.0", | 31 | "pinia-plugin-persistedstate": "^4.2.0", |
| 30 | "vue": "^3.5.13", | 32 | "vue": "^3.5.13", |
| 31 | - "vue-router": "^4.5.0" | 33 | + "vue-router": "^4.5.0", |
| 34 | + "vuetify-nuxt-module": "^0.18.6" | ||
| 32 | }, | 35 | }, |
| 33 | "devDependencies": { | 36 | "devDependencies": { |
| 34 | "@nuxtjs/tailwindcss": "^6.13.2", | 37 | "@nuxtjs/tailwindcss": "^6.13.2", |
-
Please register or login to post a comment