Lighthouse slows the CPU 4x relative to the measuring machine, so the Raspberry Pi runner scores performance 30-40 points lower than a PC for the same build. In CI the performance assertions now only warn; accessibility, best practices and SEO still block, and performance still blocks in `pnpm check` on a PC. Mobile and desktop reports go to separate folders and are attached to every run as an artifact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.0 KiB
JavaScript
42 lines
1.0 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: ['*.{js,cjs}'],
|
|
extends: [js.configs.recommended],
|
|
languageOptions: {
|
|
globals: globals.node,
|
|
},
|
|
},
|
|
);
|