This commit is contained in:
gcch 2026-03-12 18:42:12 +01:00
commit 380fb54e4e
9 changed files with 618 additions and 649 deletions

31
règles/astro.ts Normal file
View file

@ -0,0 +1,31 @@
import type { Linter } from "eslint";
import astro from "eslint-plugin-astro";
export const règlesAstro: Readonly<Linter.Config> = {
files: ["**/*.astro"],
plugins: {
astro: astro.configs["flat/base"][0]?.plugins.astro ?? {},
},
languageOptions: {
parser: "astro-eslint-parser",
sourceType: "module",
parserOptions: {
parser: {
version: "8.57.0",
meta: {
name: "typescript-eslint/parser",
version: "8.57.0",
},
},
extraFileExtensions: [".astro"],
},
},
rules: {
...astro.configs["flat/recommended"][4]?.rules,
...astro.configs["jsx-a11y-strict"][4]?.rules,
},
name: "Astro",
};
console.debug(règlesAstro);

View file

@ -1,8 +0,0 @@
import type { Linter } from "eslint";
import oxlint from "eslint-plugin-oxlint";
export const règlesOxlint: Readonly<Linter.Config> = {
name: "Oxlint",
...oxlint.configs["flat/recommended"][0],
};