From 78083eddd8f864dae5c009a1d761a6abaabe9611 Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 23 Apr 2024 21:01:28 +0200 Subject: [PATCH] feat: add es lint --- front/package-lock.json | 67 +++++++++++++++++++++++------------------ front/package.json | 15 ++++----- 2 files changed, 45 insertions(+), 37 deletions(-) diff --git a/front/package-lock.json b/front/package-lock.json index d3680a3..2670d07 100644 --- a/front/package-lock.json +++ b/front/package-lock.json @@ -12,7 +12,7 @@ "@astrojs/tailwind": "^5.1.0", "@tailwindcss/typography": "^0.5.12", "@types/leaflet": "^1.9.11", - "astro": "^4.6", + "astro": "4.5.12", "astro-geo-map": "^2.0.0", "leaflet": "^1.9.4", "lucide-astro": "^0.372.0", @@ -24,11 +24,11 @@ "devDependencies": { "@astrojs/check": "^0", "@types/node": "^20", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "@vitest/coverage-v8": "^1", - "eslint": "^8", - "eslint-plugin-astro": "^0.31", + "eslint": "^8.57.0", + "eslint-plugin-astro": "^0.31.4", "typescript": "^5", "vitest": "^1" } @@ -134,11 +134,11 @@ } }, "node_modules/@astrojs/markdown-remark": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-5.1.0.tgz", - "integrity": "sha512-S6Z3K2hOB7MfjeDoHsotnP/q2UsnEDB8NlNAaCjMDsGBZfTUbWxyLW3CaphEWw08f6KLZi2ibK9yC3BaMhh2NQ==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-4.3.2.tgz", + "integrity": "sha512-4Oa4VaYiBd0MatB+rWIU/0A8pZH/sK3c2QkRYb+OO2lPl+qzevJtWaZY8hAQc4qurIOlRdn6B6ofDAGhWw+DSg==", "dependencies": { - "@astrojs/prism": "^3.1.0", + "@astrojs/prism": "^3.0.0", "github-slugger": "^2.0.0", "hast-util-from-html": "^2.0.0", "hast-util-to-text": "^4.0.0", @@ -196,20 +196,34 @@ } }, "node_modules/@astrojs/telemetry": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.1.0.tgz", - "integrity": "sha512-/ca/+D8MIKEC8/A9cSaPUqQNZm+Es/ZinRv0ZAzvu2ios7POQSsVD+VOj7/hypWNsNM3T7RpfgNq7H2TU1KEHA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.0.4.tgz", + "integrity": "sha512-A+0c7k/Xy293xx6odsYZuXiaHO0PL+bnDoXOc47sGDF5ffIKdKQGRPFl2NMlCF4L0NqN4Ynbgnaip+pPF0s7pQ==", "dependencies": { - "ci-info": "^4.0.0", + "ci-info": "^3.8.0", "debug": "^4.3.4", "dlv": "^1.1.3", - "dset": "^3.1.3", + "dset": "^3.1.2", "is-docker": "^3.0.0", "is-wsl": "^3.0.0", "which-pm-runs": "^1.1.0" }, "engines": { - "node": "^18.17.1 || ^20.3.0 || >=21.0.0" + "node": ">=18.14.1" + } + }, + "node_modules/@astrojs/telemetry/node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" } }, "node_modules/@babel/code-frame": { @@ -1656,11 +1670,6 @@ "@babel/types": "^7.20.7" } }, - "node_modules/@types/cookie": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.4.tgz", - "integrity": "sha512-7z/eR6O859gyWIAjuvBWFzNURmf2oPBmJlfVWkwehU5nzIyjwBsTh7WMmEEV4JFnHuQ3ex4oyTvfKzcyJVDBNA==" - }, "node_modules/@types/debug": { "version": "4.1.12", "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", @@ -2358,14 +2367,14 @@ } }, "node_modules/astro": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/astro/-/astro-4.6.3.tgz", - "integrity": "sha512-p2zs1Gac+ysdc/yFCoc8pOXTZE5L9foAtmqUzUVL22WX68bYTRovd03GRs7J1MDpwzsl9kJtlK20ROpjyIFpNw==", + "version": "4.5.12", + "resolved": "https://registry.npmjs.org/astro/-/astro-4.5.12.tgz", + "integrity": "sha512-xIJcFI2hbyV8+h5pWjL7SKD1jIP0K01fYVAH+gdAt0mJaXy+u8Mj+goD0cPlK6sEaykR+7zxQLYGKJ44U4qarg==", "dependencies": { - "@astrojs/compiler": "^2.7.1", + "@astrojs/compiler": "^2.7.0", "@astrojs/internal-helpers": "0.4.0", - "@astrojs/markdown-remark": "5.1.0", - "@astrojs/telemetry": "3.1.0", + "@astrojs/markdown-remark": "4.3.2", + "@astrojs/telemetry": "3.0.4", "@babel/core": "^7.24.3", "@babel/generator": "^7.23.3", "@babel/parser": "^7.23.3", @@ -2373,7 +2382,6 @@ "@babel/traverse": "^7.23.3", "@babel/types": "^7.23.3", "@types/babel__core": "^7.20.4", - "@types/cookie": "^0.5.4", "acorn": "^8.11.2", "aria-query": "^5.3.0", "axobject-query": "^4.0.0", @@ -2430,9 +2438,8 @@ "astro": "astro.js" }, "engines": { - "node": "^18.17.1 || ^20.3.0 || >=21.0.0", - "npm": ">=9.6.5", - "pnpm": ">=7.1.0" + "node": ">=18.14.1", + "npm": ">=6.14.0" }, "optionalDependencies": { "sharp": "^0.32.6" diff --git a/front/package.json b/front/package.json index 36cb647..91cb63f 100644 --- a/front/package.json +++ b/front/package.json @@ -5,17 +5,18 @@ "private": "true", "scripts": { "dev": "astro dev", - "start": "astro dev", + "start": "node ./dist/server/entry.mjs", "build": "astro check && astro build", "preview": "astro preview", - "astro": "astro" + "astro": "astro", + "check:lint": "eslint src" }, "dependencies": { "@astrojs/node": "^8.2.5", "@astrojs/tailwind": "^5.1.0", "@tailwindcss/typography": "^0.5.12", "@types/leaflet": "^1.9.11", - "astro": "^4.6", + "astro": "4.5.12", "astro-geo-map": "^2.0.0", "leaflet": "^1.9.4", "lucide-astro": "^0.372.0", @@ -27,11 +28,11 @@ "devDependencies": { "@astrojs/check": "^0", "@types/node": "^20", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", "@vitest/coverage-v8": "^1", - "eslint": "^8", - "eslint-plugin-astro": "^0.31", + "eslint": "^8.57.0", + "eslint-plugin-astro": "^0.31.4", "typescript": "^5", "vitest": "^1" }