Files
ai-for-dummies/.agents/templates/config/eslint.config.js
T

27 lines
779 B
JavaScript

// Flat config (ESLint 9+). Copy to the repository root in task 01.
import js from '@eslint/js';
import astro from 'eslint-plugin-astro';
export default [
js.configs.recommended,
...astro.configs.recommended,
{
ignores: [
'dist/**',
'public/hands-on/**', // lab fixtures ship verbatim — linting them would
// invite "fixes" that break the exercise
'submitted-skills/**', // other people's work, reproduced as submitted
'skill-reviews/**', // generated from skills-review/catalog.js
'vote-service/**', // Go service, separate lifecycle
],
},
{
rules: {
'no-console': ['warn', { allow: ['warn', 'error'] }],
eqeqeq: ['error', 'always'],
'no-var': 'error',
'prefer-const': 'error',
},
},
];