chore: add prettier check

This commit is contained in:
2026-09-26 23:09:37 +05:00
parent fcf4d8156b
commit 9c6f223b13
5 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
4173).
- Форматирование: `pnpm format` в корне (оба прогона) или
`pnpm --dir web format` (только код web/). Проверка: `pnpm check:docs`
(docs) + `pnpm --dir web exec prettier --check .` (код).
(docs) + `pnpm --dir web format:check` (код).
- Полный быстрый gate: `pnpm verify`; подробная матрица команд и CI —
`docs/quality-gates.md`.
- После пуша результат CI проверяется явно: смотреть статусы отдельных job, а не
+1 -1
View File
@@ -18,7 +18,7 @@ pnpm verify
coverage-гейтом.
3. `pnpm --dir web test:rules` — отдельный быстрый прогон тестов ESLint-правил.
4. `pnpm --dir web lint:all` — ESLint, Stylelint и token audit.
5. `pnpm --dir web exec prettier --check .` — форматирование кода `web/`.
5. `pnpm --dir web format:check` — форматирование кода `web/`.
6. `pnpm check:docs` — форматирование Markdown.
7. `pnpm --dir web build` — production build.
+1 -1
View File
@@ -114,7 +114,7 @@ checklist. В комментарии указывается ссылка на н
pnpm --dir web check
pnpm --dir web test:rules
pnpm --dir web lint:all
pnpm --dir web exec prettier --check .
pnpm --dir web format:check
pnpm check:docs
pnpm --dir web test:e2e
pnpm verify
+3 -3
View File
@@ -5,12 +5,12 @@
"main": "index.js",
"scripts": {
"test": "pnpm --dir web test",
"verify": "pnpm --dir web check && pnpm --dir web test:coverage && pnpm --dir web test:rules && pnpm --dir web lint:all && pnpm --dir web exec prettier --check . && pnpm check:docs && pnpm --dir web build",
"verify": "pnpm --dir web check && pnpm --dir web test:coverage && pnpm --dir web test:rules && pnpm --dir web lint:all && pnpm --dir web format:check && pnpm check:docs && pnpm --dir web build",
"dev": "pnpm --dir web dev",
"build": "pnpm --dir web build",
"format": "pnpm format:docs && pnpm --dir web format",
"format:docs": "prettier --write docs --log-level warn",
"check:docs": "prettier --check docs",
"format:docs": "prettier --write docs --log-level warn --cache",
"check:docs": "prettier --check docs --cache",
"generate:fixtures": "node tests/fixtures/manual-edge-cases/generate.mjs"
},
"keywords": [],
+2 -1
View File
@@ -14,7 +14,8 @@
"test:coverage": "vitest run --coverage",
"test:rules": "vitest run eslint-plugins/__tests__",
"test:e2e": "playwright test",
"format": "prettier --write . --log-level warn",
"format": "prettier --write . --log-level warn --cache",
"format:check": "prettier --check . --log-level warn --cache",
"lint": "eslint .",
"lint:css": "stylelint \"./src/**/*.css\"",
"lint:all": "node scripts/lint-all.mjs",