module.exports = {
  root: true,
  env: {
    node: true,
    browser: true,
    es2022: true
  },
  extends: [
    'eslint:recommended',
    'plugin:vue/vue3-essential'
  ],
  parserOptions: {
    ecmaVersion: 2022,
    sourceType: 'module'
  },
  plugins: ['vue'],
  // Ignore TypeScript Vue files (no TS parser configured)
  ignorePatterns: ['**/*.ts', '**/SolduriCompactCard.vue'],
  rules: {
    // Warnings only
    'no-unused-vars': 'warn',
    'no-undef': 'warn',
    'no-case-declarations': 'warn',

    // Disabled for existing codebase compatibility
    'vue/multi-word-component-names': 'off',
    'vue/no-reserved-component-names': 'off',  // PrimeVue uses Button, Dialog, etc.
    'vue/no-mutating-props': 'warn',  // Common pattern with v-model
    'vue/no-parsing-error': 'warn'  // Template expressions with < > operators
  }
}
