Fix for new Esling requirements
All checks were successful
Portfolio/pipeline/head This commit looks good
All checks were successful
Portfolio/pipeline/head This commit looks good
This commit is contained in:
24
eslint.config.mjs
Normal file
24
eslint.config.mjs
Normal 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/*"]
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user