feat: add es lint
All checks were successful
Build Docker Image / run (pull_request) Successful in 1m44s

This commit is contained in:
Clement 2024-04-23 21:01:28 +02:00
parent bd5478ac96
commit 78083eddd8
2 changed files with 45 additions and 37 deletions

View File

@ -12,7 +12,7 @@
"@astrojs/tailwind": "^5.1.0", "@astrojs/tailwind": "^5.1.0",
"@tailwindcss/typography": "^0.5.12", "@tailwindcss/typography": "^0.5.12",
"@types/leaflet": "^1.9.11", "@types/leaflet": "^1.9.11",
"astro": "^4.6", "astro": "4.5.12",
"astro-geo-map": "^2.0.0", "astro-geo-map": "^2.0.0",
"leaflet": "^1.9.4", "leaflet": "^1.9.4",
"lucide-astro": "^0.372.0", "lucide-astro": "^0.372.0",
@ -24,11 +24,11 @@
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0", "@astrojs/check": "^0",
"@types/node": "^20", "@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6", "@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-v8": "^1", "@vitest/coverage-v8": "^1",
"eslint": "^8", "eslint": "^8.57.0",
"eslint-plugin-astro": "^0.31", "eslint-plugin-astro": "^0.31.4",
"typescript": "^5", "typescript": "^5",
"vitest": "^1" "vitest": "^1"
} }
@ -134,11 +134,11 @@
} }
}, },
"node_modules/@astrojs/markdown-remark": { "node_modules/@astrojs/markdown-remark": {
"version": "5.1.0", "version": "4.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-5.1.0.tgz", "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-4.3.2.tgz",
"integrity": "sha512-S6Z3K2hOB7MfjeDoHsotnP/q2UsnEDB8NlNAaCjMDsGBZfTUbWxyLW3CaphEWw08f6KLZi2ibK9yC3BaMhh2NQ==", "integrity": "sha512-4Oa4VaYiBd0MatB+rWIU/0A8pZH/sK3c2QkRYb+OO2lPl+qzevJtWaZY8hAQc4qurIOlRdn6B6ofDAGhWw+DSg==",
"dependencies": { "dependencies": {
"@astrojs/prism": "^3.1.0", "@astrojs/prism": "^3.0.0",
"github-slugger": "^2.0.0", "github-slugger": "^2.0.0",
"hast-util-from-html": "^2.0.0", "hast-util-from-html": "^2.0.0",
"hast-util-to-text": "^4.0.0", "hast-util-to-text": "^4.0.0",
@ -196,20 +196,34 @@
} }
}, },
"node_modules/@astrojs/telemetry": { "node_modules/@astrojs/telemetry": {
"version": "3.1.0", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.1.0.tgz", "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.0.4.tgz",
"integrity": "sha512-/ca/+D8MIKEC8/A9cSaPUqQNZm+Es/ZinRv0ZAzvu2ios7POQSsVD+VOj7/hypWNsNM3T7RpfgNq7H2TU1KEHA==", "integrity": "sha512-A+0c7k/Xy293xx6odsYZuXiaHO0PL+bnDoXOc47sGDF5ffIKdKQGRPFl2NMlCF4L0NqN4Ynbgnaip+pPF0s7pQ==",
"dependencies": { "dependencies": {
"ci-info": "^4.0.0", "ci-info": "^3.8.0",
"debug": "^4.3.4", "debug": "^4.3.4",
"dlv": "^1.1.3", "dlv": "^1.1.3",
"dset": "^3.1.3", "dset": "^3.1.2",
"is-docker": "^3.0.0", "is-docker": "^3.0.0",
"is-wsl": "^3.0.0", "is-wsl": "^3.0.0",
"which-pm-runs": "^1.1.0" "which-pm-runs": "^1.1.0"
}, },
"engines": { "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": { "node_modules/@babel/code-frame": {
@ -1656,11 +1670,6 @@
"@babel/types": "^7.20.7" "@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": { "node_modules/@types/debug": {
"version": "4.1.12", "version": "4.1.12",
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",
@ -2358,14 +2367,14 @@
} }
}, },
"node_modules/astro": { "node_modules/astro": {
"version": "4.6.3", "version": "4.5.12",
"resolved": "https://registry.npmjs.org/astro/-/astro-4.6.3.tgz", "resolved": "https://registry.npmjs.org/astro/-/astro-4.5.12.tgz",
"integrity": "sha512-p2zs1Gac+ysdc/yFCoc8pOXTZE5L9foAtmqUzUVL22WX68bYTRovd03GRs7J1MDpwzsl9kJtlK20ROpjyIFpNw==", "integrity": "sha512-xIJcFI2hbyV8+h5pWjL7SKD1jIP0K01fYVAH+gdAt0mJaXy+u8Mj+goD0cPlK6sEaykR+7zxQLYGKJ44U4qarg==",
"dependencies": { "dependencies": {
"@astrojs/compiler": "^2.7.1", "@astrojs/compiler": "^2.7.0",
"@astrojs/internal-helpers": "0.4.0", "@astrojs/internal-helpers": "0.4.0",
"@astrojs/markdown-remark": "5.1.0", "@astrojs/markdown-remark": "4.3.2",
"@astrojs/telemetry": "3.1.0", "@astrojs/telemetry": "3.0.4",
"@babel/core": "^7.24.3", "@babel/core": "^7.24.3",
"@babel/generator": "^7.23.3", "@babel/generator": "^7.23.3",
"@babel/parser": "^7.23.3", "@babel/parser": "^7.23.3",
@ -2373,7 +2382,6 @@
"@babel/traverse": "^7.23.3", "@babel/traverse": "^7.23.3",
"@babel/types": "^7.23.3", "@babel/types": "^7.23.3",
"@types/babel__core": "^7.20.4", "@types/babel__core": "^7.20.4",
"@types/cookie": "^0.5.4",
"acorn": "^8.11.2", "acorn": "^8.11.2",
"aria-query": "^5.3.0", "aria-query": "^5.3.0",
"axobject-query": "^4.0.0", "axobject-query": "^4.0.0",
@ -2430,9 +2438,8 @@
"astro": "astro.js" "astro": "astro.js"
}, },
"engines": { "engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0", "node": ">=18.14.1",
"npm": ">=9.6.5", "npm": ">=6.14.0"
"pnpm": ">=7.1.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"sharp": "^0.32.6" "sharp": "^0.32.6"

View File

@ -5,17 +5,18 @@
"private": "true", "private": "true",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "node ./dist/server/entry.mjs",
"build": "astro check && astro build", "build": "astro check && astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro",
"check:lint": "eslint src"
}, },
"dependencies": { "dependencies": {
"@astrojs/node": "^8.2.5", "@astrojs/node": "^8.2.5",
"@astrojs/tailwind": "^5.1.0", "@astrojs/tailwind": "^5.1.0",
"@tailwindcss/typography": "^0.5.12", "@tailwindcss/typography": "^0.5.12",
"@types/leaflet": "^1.9.11", "@types/leaflet": "^1.9.11",
"astro": "^4.6", "astro": "4.5.12",
"astro-geo-map": "^2.0.0", "astro-geo-map": "^2.0.0",
"leaflet": "^1.9.4", "leaflet": "^1.9.4",
"lucide-astro": "^0.372.0", "lucide-astro": "^0.372.0",
@ -27,11 +28,11 @@
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0", "@astrojs/check": "^0",
"@types/node": "^20", "@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6", "@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-v8": "^1", "@vitest/coverage-v8": "^1",
"eslint": "^8", "eslint": "^8.57.0",
"eslint-plugin-astro": "^0.31", "eslint-plugin-astro": "^0.31.4",
"typescript": "^5", "typescript": "^5",
"vitest": "^1" "vitest": "^1"
} }