chore: bootstrap del progetto Astro con strumenti di qualità
- 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
This commit is contained in:
32 files changed
+14184
-436
No files matched your search
@@ -0,0 +1,41 @@
|
||||
// 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' },
|
||||
},
|
||||
);
|
||||
Reference in new issue
Block a user