wip
This commit is contained in:
parent
d14e999d04
commit
380fb54e4e
9 changed files with 618 additions and 649 deletions
31
règles/astro.ts
Normal file
31
règles/astro.ts
Normal 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);
|
||||
|
|
@ -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],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue