import js from '@eslint/js';
import astro from 'eslint-plugin-astro';

export default [
  {
    ignores: [
      '.agents/**',
      '.astro/**',
      'dist/**',
      'hands-on/**',
      'legacy/**',
      'public/hands-on/**',
      'scripts/**',
      'skill-reviews/**',
      'skills/**',
      'submitted-skills/**',
      'vote-service/**',
    ],
  },
  js.configs.recommended,
  ...astro.configs.recommended,
  {
    ignores: [
      'dist/**',
      'hands-on/**',
      'legacy/**',
      'public/hands-on/**',
      'submitted-skills/**',
      'skill-reviews/**',
      'vote-service/**',
    ],
  },
  {
    rules: {
      'no-console': ['warn', { allow: ['warn', 'error'] }],
      eqeqeq: ['error', 'always'],
      'no-var': 'error',
      'prefer-const': 'error',
    },
  },
];
