feat(lint): enforce definePage layout meta on pages-v2
Adds a custom ESLint rule (local-rules/require-v2-layout-meta) that
fails any src/pages-v2/**.vue page missing
definePage({ meta: { layout: 'OrganizerLayoutV2' } }) (or PortalLayoutV2
under pages-v2/portal), preventing a silent wrong-shell fallback to the
default layout (RFC-WS-GUI-REDESIGN AD-G2). Wires eslint-plugin-local-rules
+ a pages-v2 override. The RuleTester spec is called at top level (ESLint
RuleTester self-manages describe/it under Vitest) and vitest.config.ts
gains the eslint-rules test glob so the spec is discovered.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,7 @@ export default defineConfig({
|
||||
'tests/unit/**/*.{test,spec}.ts',
|
||||
'tests/*.{test,spec}.ts',
|
||||
'src/**/__tests__/**/*.{test,spec}.ts',
|
||||
'eslint-rules/**/__tests__/**/*.{test,spec}.ts',
|
||||
],
|
||||
setupFiles: ['./tests/setup.ts'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user