c5242271d7
Closes Audit #3 P3 batch. Changes: 1. **knip.config.ts cleanup** — remove 4 stale config hints flagged in Audit #3 Phase 1B (`ignore: tests/**` redundant since `project` is `resources/js/**`; `ignoreDependencies` for vitest/@vue/test-utils/jsdom redundant since knip auto-detects test frameworks). Add `histoire.config.ts` + `resources/js/histoire.setup.ts` to entry — closes 2 documented FPs (histoire.setup.ts + @histoire/plugin-vue unused-flag). Verified: `npx knip` exits 0 clean. 2. **Admin table actions column header label** — change `title: ''` → `title: 'Действия'` in: - TenantsTable.vue (actions column, /admin/tenants) - AdminSupplierPricesView.vue (actions column, /admin/supplier-prices) Closes axe-core `empty-table-header` violation seen in Audit #3 Phase 7 on /admin/tenants. Header is now visible in UI (better UX than sr-only sleight-of-hand). 3. **npm overrides for lodash** in `package.json` — pin `pa11y-ci > lodash` to ^4.17.21. Verified: `npm ls lodash` resolves to lodash@4.17.23 (latest 4.x; CVE-2021-23337 + GHSA-f23m patched in <4.17.21, our version is above that). npm audit may still surface advisory ranges as informational. 4. **Decision doc for pgFormatter (Q.HARD.002)** — explicit FIX-DEFER with 3-hypothesis comparison (Strawberry Perl install vs sqlfluff replacement vs Docker pg_format vs drop SQL formatting). Decision: drop automated SQL formatting until Б-1 closure; squawk (linter) covers correctness. Addendum: axe-core .v-overlay-container region landmark — no permanent axe-core test setup exists, so no whitelist needed at this point. Verification: - knip: 0 issues - vue-tsc: 0 errors - ESLint: 0 errors - Vitest: 91 files / 736 passed / 3 skipped (no regressions) - Vite build: 2.03s Plan: docs/superpowers/plans/2026-05-14-audit3-deferred-fixes.md Task 4. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
1.9 KiB
JSON
42 lines
1.9 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"
|
|
},
|
|
"overrides": {
|
|
"pa11y-ci": {
|
|
"lodash": "^4.17.21"
|
|
}
|
|
}
|
|
}
|