import pluginVue from 'eslint-plugin-vue'
import { globalIgnores } from 'eslint/config';
import {
  defineConfigWithVueTs,
  vueTsConfigs,
} from '@vue/eslint-config-typescript'
import pluginVueA11y from "eslint-plugin-vuejs-accessibility";

export default defineConfigWithVueTs(
  pluginVue.configs['flat/essential'],
  vueTsConfigs.recommended,
  ...pluginVueA11y.configs["flat/recommended"],
  {
    rules: {
      "vue/multi-word-component-names": 0,
      "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
      "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
    }
  },
  globalIgnores([
    ".output/",
    ".nuxt",
  ])
)


// import eslint from '@eslint/js';
// import tseslint from 'typescript-eslint';
// import pluginVueA11y from "eslint-plugin-vuejs-accessibility";
// import { globalIgnores } from 'eslint/config';

// export default tseslint.config([
//   // add more generic rulesets here, such as:
//   eslint.configs.recommended,
//   tseslint.configs.recommended,
//   ...pluginVueA11y.configs["flat/recommended"],
//   {
//     rules: {
//       // override/add rules settings here, such as:
//       // "vuejs-accessibility/alt-text": "error"
//     }
//   },
//   globalIgnores([
//     ".output/",
//     ".nuxt",
//   ])
// ]);