Files
AndreaSlopFotografie/web/eslint.config.js
T
SluijsensandClaude Sonnet 5.5 e09459423f Connects the contact form to the CMS API through the cms-client package
Copies the headless cms-client package (SlpSoftware 93fa729) and builds the
form on useContactForm: availability check when the form is in view (no
request while switched off), the readable shoot label as subject, the Friendly
Captcha widget as its own lazy chunk, trackEvent for contact-sent and
contact-failed. Removes the old reducer, validation and submit stub.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 23:21:02 +01:00

66 lines
1.8 KiB
JavaScript

import js from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import reactHooks from 'eslint-plugin-react-hooks';
import jsxA11y from 'eslint-plugin-jsx-a11y';
// Alleen regels die fouten vinden; opmaak is aan Prettier
export default tseslint.config(
{
ignores: [
'dist',
'coverage',
'.lighthouseci',
'lighthouse-reports',
'.agents',
'.claude',
'.junie',
'.tanstack',
'src/routeTree.gen.ts',
],
},
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
jsxA11y.flatConfigs.recommended,
],
languageOptions: {
globals: globals.browser,
},
},
{
// The copied cms-client package stays headless: it may only import
// react and its own files (also enforced by its boundary test)
files: ['src/cms-client/**/*.{ts,tsx}'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['@/*'],
message: 'cms-client must not import from the app',
},
],
},
],
},
},
{
files: ['config/**/*.ts', 'e2e/**/*.ts', 'vitest.e2e.config.ts'],
languageOptions: {
globals: globals.node,
},
},
{
files: ['*.{js,cjs}'],
extends: [js.configs.recommended],
languageOptions: {
globals: globals.node,
},
},
);