import astroPlugin from 'eslint-plugin-astro';
import astroParser from 'astro-eslint-parser';
import vuePlugin from 'eslint-plugin-vue';
import vueParser from 'vue-eslint-parser';

export default [
    {
        files: ['*.vue'],
        languageOptions: {
            parser: vueParser,
            parserOptions: {
                ecmaVersion: 2021,
                sourceType: 'module',
            },
        },
        plugins: {
            vue: vuePlugin,
        },
        extends: ['plugin:vue/vue3-recommended'],
        rules: {},
    },

    {
        files: ['*.js', '*.jsx'],
        languageOptions: {
            ecmaVersion: 2021,
            sourceType: 'module',
        },
        extends: ['eslint:recommended'],
        rules: {},
    },
];
