44 lines
844 B
JavaScript
44 lines
844 B
JavaScript
import js from '@eslint/js';
|
|
import astro from 'eslint-plugin-astro';
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
'.agents/**',
|
|
'.astro/**',
|
|
'app.js',
|
|
'dist/**',
|
|
'full-guide/**',
|
|
'hands-on/**',
|
|
'public/hands-on/**',
|
|
'rules/**',
|
|
'scripts/**',
|
|
'skill-reviews/**',
|
|
'skills-review/**',
|
|
'skills/**',
|
|
'submitted-skills/**',
|
|
'vote-service/**',
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...astro.configs.recommended,
|
|
{
|
|
ignores: [
|
|
'dist/**',
|
|
'hands-on/**',
|
|
'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',
|
|
},
|
|
},
|
|
];
|