ci / build-and-test (push) Canceled after 0s
Pin eslint@9 (jsx-a11y peer) and add eslint-plugin-astro + eslint-plugin-jsx-a11y + typescript-eslint as devDeps. eslint.config.js wires: - @eslint/js recommended and typescript-eslint recommended for general .ts/.mjs. - astro flat/jsx-a11y-recommended for .astro files, registering the jsx-a11y plugin explicitly. - project-specific tweaks: drop jsx-a11y/anchor-is-valid (noisy on Astro links), warn on click-events-have-key-events and no-static-element-interactions, allow any in scripts/tests, ignore env.d.ts triple-slash ref (Astro convention). Scripts: lint and lint:fix. prebuild now also runs lint, so the same chain guards a11y regressions as type and build errors. CI workflow gains a lint step between check and build. 0 errors, 16/16 e2e still pass.
46 lines
1.2 KiB
JSON
46 lines
1.2 KiB
JSON
{
|
|
"name": "ibiza-environmental-watch",
|
|
"type": "module",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=22.12.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"prebuild": "node scripts/build-og-image.mjs && astro check && eslint .",
|
|
"build": "astro build",
|
|
"preview": "astro preview",
|
|
"check": "astro check",
|
|
"check:watch": "astro check --watch",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"pretest:e2e": "astro check && astro build",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:install": "playwright install --with-deps chromium"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/preact": "^6.0.1",
|
|
"@astrojs/rss": "^4.0.19",
|
|
"@astrojs/sitemap": "^3.7.3",
|
|
"astro": "^7.1.3",
|
|
"leaflet": "^1.9.4",
|
|
"pg": "^8.13.0",
|
|
"preact": "^10.24.3"
|
|
},
|
|
"devDependencies": {
|
|
"@astrojs/check": "^0.9.4",
|
|
"@axe-core/playwright": "^4.12.1",
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.62.0",
|
|
"@types/leaflet": "^1.9.12",
|
|
"@types/pg": "^8.11.10",
|
|
"axe-core": "^4.12.1",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-astro": "^3.0.1",
|
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
"typescript": "^5.6.3",
|
|
"typescript-eslint": "^8.65.0"
|
|
}
|
|
}
|