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:
@@ -138,6 +138,7 @@
|
||||
"eslint-plugin-jest": "27.9.0",
|
||||
"eslint-plugin-jsdoc": "46.10.1",
|
||||
"eslint-plugin-jsonc": "2.21.0",
|
||||
"eslint-plugin-local-rules": "3.0.2",
|
||||
"eslint-plugin-markdown": "3.0.1",
|
||||
"eslint-plugin-n": "16.6.2",
|
||||
"eslint-plugin-no-only-tests": "3.3.0",
|
||||
|
||||
Reference in New Issue
Block a user