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

This commit is contained in:
Lucas committed 2026-01-12 18:34:17 +01:00
1 parent 8ede8ea80b
commit 02a0d694a1
3 files changed
+25 -22

No files matched your search

-21
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
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/*"]
}
];
+1 -1
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": {