ci: add typescript capability and a11y linting

This commit is contained in:
2026-03-01 20:42:49 +01:00
parent 97be729014
commit be3293c53b
4 changed files with 1218 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
import js from "@eslint/js";
import { defineConfig } from "eslint/config";
import eslintPluginAstro from "eslint-plugin-astro";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import { defineConfig } from "eslint/config";
import jsxA11y from "eslint-plugin-jsx-a11y";
export default defineConfig([
{
@@ -9,6 +10,12 @@ export default defineConfig([
plugins: { js },
extends: ["js/recommended"],
},
{
files: ["**/*.{astro,html}"],
plugins: {
"jsx-a11y": jsxA11y,
},
},
...eslintPluginAstro.configs.recommended,
eslintPluginPrettierRecommended,
]);

View File

@@ -17,13 +17,16 @@
"tailwindcss": "^4.2.1"
},
"devDependencies": {
"@astrojs/ts-plugin": "^1.10.6",
"@eslint/js": "^10.0.1",
"@markuplint/astro-parser": "^4.6.23",
"@markuplint/ml-config": "^4.8.15",
"@typescript-eslint/parser": "^8.56.1",
"cspell": "^9.7.0",
"eslint": "^10.0.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-astro": "^1.6.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.5",
"markuplint": "^4.14.1",
"postcss-html": "^1.8.1",

1201
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,9 @@
{
"extends": "astro/tsconfigs/strict",
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "astro/tsconfigs/strictest",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
"exclude": ["dist"],
"compilerOptions": {
"plugins": [{ "name": "@astrojs/ts-plugin" }]
}
}