- Astro 7.4.0 in output statico, TypeScript strict, sitemap - ESLint (flat config, Astro + TS), Prettier, EditorConfig, .nvmrc - configurazioni di Playwright, Lighthouse CI e html-validate - script npm di §3.3 (segnaposto per gli script non ancora implementati) - README, DECISIONS, TODO-STUDIO e CHANGELOG iniziali - mockup e brief in docs/ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016zJ9ZWGKvoKoxYwbmnRKdJ
42 lines
1023 B
JavaScript
42 lines
1023 B
JavaScript
// Configurazione ESLint (flat config) — JavaScript, TypeScript e componenti Astro.
|
|
import js from '@eslint/js';
|
|
import { defineConfig } from 'eslint/config';
|
|
import astro from 'eslint-plugin-astro';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default defineConfig(
|
|
{
|
|
ignores: [
|
|
'dist/',
|
|
'release/',
|
|
'.astro/',
|
|
'node_modules/',
|
|
'playwright-report/',
|
|
'test-results/',
|
|
'blob-report/',
|
|
'.lighthouseci/',
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
...astro.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: { ...globals.browser, ...globals.node },
|
|
},
|
|
rules: {
|
|
'no-console': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.cjs'],
|
|
languageOptions: { sourceType: 'commonjs' },
|
|
rules: { '@typescript-eslint/no-require-imports': 'off' },
|
|
},
|
|
);
|