fix(eslintrc): switch to new config name after update

This commit is contained in:
2026-01-09 14:17:59 +01:00
parent 8ede8ea80b
commit 02a0d694a1
3 changed files with 25 additions and 22 deletions

View File

@@ -1,21 +0,0 @@
module.exports = {
extends: [
"plugin:astro/recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
overrides: [
{
files: ["*.astro"],
parser: "astro-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
rules: {
// Tu peux ajouter des règles spécifiques ici
},
},
],
};

24
eslint.config.mjs Normal file
View File

@@ -0,0 +1,24 @@
import eslintPluginAstro from 'eslint-plugin-astro';
import tsParser from '@typescript-eslint/parser';
export default [
// Configuration pour les fichiers Astro
...eslintPluginAstro.configs.recommended,
{
files: ["**/*.astro"],
languageOptions: {
parser: eslintPluginAstro.parser,
parserOptions: {
parser: tsParser,
extraFileExtensions: [".astro"],
},
},
rules: {
// Tes règles personnalisées ici
},
},
// On ignore le dossier de build
{
ignores: ["dist/*", ".astro/*"]
}
];

View File

@@ -7,7 +7,7 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "eslint src/**/*.{js,ts,astro}",
"lint": "eslint .",
"check": "astro check"
},
"dependencies": {