module.exports = { root: true, env: { browser: true, node: true, es2021: true, }, parserOptions: { ecmaVersion: 2021, sourceType: 'module', // Allow ESLint to recognize .vue and .astro files extraFileExtensions: ['.vue', '.astro'], }, extends: [ // Basic recommended rules from ESLint 'eslint:recommended', // Vue 3 best practices (uses vue-eslint-parser under the hood) 'plugin:vue/vue3-recommended', // :contentReference[oaicite:0]{index=0} // TypeScript support (if you’re using TS in .js/.ts or inside .vue/.astro) 'plugin:@typescript-eslint/recommended', // Astro’s own recommended ruleset 'plugin:astro/recommended', // :contentReference[oaicite:1]{index=1} ], plugins: [ 'vue', '@typescript-eslint', 'astro', ], rules: { // Customize global rules here (if needed). For example: // '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], }, overrides: [ // ————— Override for `.astro` files ————— { files: ['*.astro'], parser: 'astro-eslint-parser', parserOptions: { // Inside