From 4b31c0302298666cc8108cce21a2082823d4f737 Mon Sep 17 00:00:00 2001
From: Pierre-Alexandre Martin <pierre-alexandre.martin@imt-atlantique.net>
Date: Fri, 28 Feb 2025 13:26:35 +0100
Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20linter?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitlab-ci.yml                  | 10 +++++-----
 components/Parcours/Details.vue |  2 +-
 package-lock.json               |  8 ++++----
 package.json                    |  3 ++-
 repository/module/route.ts      |  2 +-
 5 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 882e9d4..5b177e7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -69,9 +69,9 @@ lint:
   stage: test
   needs:
     - job: build
-      artifacts: true 
+      artifacts: true
   script:
-    - npm run lint
+    - npm run lint-fix
 
 check-updates:
   stage: test
@@ -85,11 +85,11 @@ check-updates:
 build-image:
   stage: docker
   rules:
-    - if: $CI_COMMIT_BRANCH == "main" || 
+    - if: $CI_COMMIT_BRANCH == "main" ||
         $CI_COMMIT_BRANCH == "dev"
-  image: 
+  image:
     name: gcr.io/kaniko-project/executor:v1.23.2-debug
-    entrypoint: [""]
+    entrypoint: [ "" ]
   script:
     - |
       if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
diff --git a/components/Parcours/Details.vue b/components/Parcours/Details.vue
index 854505e..0d0d663 100644
--- a/components/Parcours/Details.vue
+++ b/components/Parcours/Details.vue
@@ -1,5 +1,5 @@
 <script setup lang="ts">
-import {type LatLngExpression} from "leaflet";
+import type {LatLngExpression} from "leaflet";
 import 'leaflet.markercluster';
 import * as v from 'valibot';
 import {calculateCenter, calculateMaxBounds, createMarkerNumberedIcon} from "~/utils/MapUtils";
diff --git a/package-lock.json b/package-lock.json
index cd1a661..818cf14 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,7 +19,7 @@
         "vue3-smooth-dnd": "^0.0.6"
       },
       "devDependencies": {
-        "@iconify-json/lucide": "^1.2.26",
+        "@iconify-json/lucide": "^1.2.27",
         "@iconify-json/material-symbols": "^1.2.14",
         "@nuxt/test-utils": "^3.17.0",
         "@vue/test-utils": "^2.4.6",
@@ -1391,9 +1391,9 @@
       }
     },
     "node_modules/@iconify-json/lucide": {
-      "version": "1.2.26",
-      "resolved": "https://registry.npmjs.org/@iconify-json/lucide/-/lucide-1.2.26.tgz",
-      "integrity": "sha512-arD/8mK0lRxFY2LgLf345NhWVWiOtV8sOxJuLnq4QRz3frMiOwVwGxEgp5Xe/bRGzxO2CxxCBok0bPRpCkYZQQ==",
+      "version": "1.2.27",
+      "resolved": "https://registry.npmjs.org/@iconify-json/lucide/-/lucide-1.2.27.tgz",
+      "integrity": "sha512-Q1Msf39/6TuY3DL9vKkrAbGaK7/28E0/9oWnwcgfSQ9zJvOV1bY9OzK14vIBIqtaGyYI5st/wwNiJNi+16WEkQ==",
       "dev": true,
       "license": "ISC",
       "dependencies": {
diff --git a/package.json b/package.json
index 913db23..3b06354 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
     "dev": "node_modules/.bin/nuxt dev --dotenv .env",
     "generate": "node_modules/.bin/nuxt generate",
     "lint": "node_modules/.bin/eslint .",
+    "lint-fix": "node_modules/.bin/eslint . --fix",
     "postinstall": "node_modules/.bin/nuxt prepare",
     "preview": "node_modules/.bin/nuxt preview",
     "prod": " node .output/server/index.mjs",
@@ -26,7 +27,7 @@
     "vue3-smooth-dnd": "^0.0.6"
   },
   "devDependencies": {
-    "@iconify-json/lucide": "^1.2.26",
+    "@iconify-json/lucide": "^1.2.27",
     "@iconify-json/material-symbols": "^1.2.14",
     "@nuxt/test-utils": "^3.17.0",
     "@vue/test-utils": "^2.4.6",
diff --git a/repository/module/route.ts b/repository/module/route.ts
index 31cb992..a6e4a11 100644
--- a/repository/module/route.ts
+++ b/repository/module/route.ts
@@ -1,4 +1,4 @@
-import {type SelectedExercise} from "~/types/Exercise";
+import type {SelectedExercise} from "~/types/Exercise";
 import type {ResponseBody} from "~/types/ResponseBody";
 import type {Route} from "~/types/Route";
 
-- 
GitLab