b32f210438
Closes Audit #3 sole P1 (F-A11Y-PA11Y-SCOPE-01). Pa11y was scanning handoff HTML prototypes from liderra_v8_handoff/concepts/ (3 URLs, ~10 contrast violations), NOT the live Vue app. Audit #2 baseline "0 errors" was inaccurate — real portal was never covered. Changes: - pa11y.config.json: now targets http://localhost:8000/<route> for 7 guest pages (login, register, forgot, 2fa, recovery, 403, 500) - pa11y-handoff.config.json: preserves historical handoff baseline as opt-in (`npm run a11y:handoff`) - package.json: new `a11y:handoff` script; `a11y` repointed to live target - RecoveryCodesView.vue: scoped CSS override fixes Vuetify warning-tonal alert content contrast (2.03:1 → ≥4.5:1, color #0a0700 per Pa11y rec) - .github/workflows/a11y.yml: new CI job with dev-server lifecycle (php artisan serve + curl wait-on + Pa11y + screenshot artifact upload) - docs/audit-baseline-pa11y.md: first live baseline document with per-URL status, ignore selectors rationale, re-run instructions Local verification: - npm run a11y: 7/7 URLs passed (0 violations) - vue-tsc: 0 errors - ESLint: 0 errors - Vitest: 88 files / 683 passed / 3 skipped / 0 failed (no regressions) Plan: docs/superpowers/plans/2026-05-14-audit3-deferred-fixes.md Task 1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
1.8 KiB
JSON
37 lines
1.8 KiB
JSON
{
|
|
"name": "liderra",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Лидерра — SaaS CRM (фаза 0: документация и HTML-прототипы)",
|
|
"scripts": {
|
|
"lint:md": "markdownlint-cli2 \"docs/**/*.md\" \"db/**/*.md\" \"*.md\"",
|
|
"lint:md:fix": "markdownlint-cli2 --fix \"docs/**/*.md\" \"db/**/*.md\" \"*.md\"",
|
|
"spell": "cspell --no-progress --show-suggestions \"docs/**/*.md\" \"db/**/*.md\" \"*.md\" \"web/**/*.html\"",
|
|
"links": "bin\\lychee.exe --config .lychee.toml \"docs/**/*.md\" \"db/**/*.md\" \"*.md\"",
|
|
"lint:css": "stylelint \"web/**/*.html\"",
|
|
"lint:sql": "bin\\squawk.exe db/schema.sql",
|
|
"format:sql:check": "perl -I bin/pgFormatter/lib bin/pgFormatter/pg_format db/schema.sql > db/.schema-formatted.tmp.sql && diff -q db/schema.sql db/.schema-formatted.tmp.sql || echo \"pgFormatter would reformat — run npm run format:sql to apply\"",
|
|
"format:sql": "perl -I bin/pgFormatter/lib bin/pgFormatter/pg_format -o db/schema.sql.formatted db/schema.sql && echo \"Wrote db/schema.sql.formatted — review diff before replacing source\"",
|
|
"a11y": "pa11y-ci --config pa11y.config.json",
|
|
"a11y:handoff": "pa11y-ci --config pa11y-handoff.config.json",
|
|
"check:docs": "run-p lint:md spell links a11y",
|
|
"sast": "semgrep --config=p/php --config=p/javascript --config=p/typescript --config=p/secrets --config=.semgrep.yml --error --time"
|
|
},
|
|
"devDependencies": {
|
|
"@cspell/dict-en_us": "^4.4.33",
|
|
"@cspell/dict-ru_ru": "^2.3.2",
|
|
"cspell": "^10.0.0",
|
|
"lefthook": "^2.1.6",
|
|
"markdownlint-cli2": "^0.22.1",
|
|
"npm-run-all2": "^8.0.4",
|
|
"pa11y": "^9.1.1",
|
|
"pa11y-ci": "^4.1.0",
|
|
"postcss-html": "^1.8.1",
|
|
"stylelint": "^17.11.0",
|
|
"stylelint-config-standard": "^40.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
}
|