The build now moves inline scripts and fails on a violation. Lighthouse audits /404.html, because it refuses a page with a real 404 status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.2 KiB
JavaScript
48 lines
1.2 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,
|
|
},
|
|
},
|
|
{
|
|
files: ['config/**/*.ts', 'e2e/**/*.ts', 'vitest.e2e.config.ts'],
|
|
languageOptions: {
|
|
globals: globals.node,
|
|
},
|
|
},
|
|
{
|
|
files: ['*.{js,cjs}'],
|
|
extends: [js.configs.recommended],
|
|
languageOptions: {
|
|
globals: globals.node,
|
|
},
|
|
},
|
|
);
|