arm-web/Makefile
Andrey Epifancev a8a6da0de3 Форматирование перед PR: ESLint + Prettier и npm run format (#29)
- Prettier — единственный форматтер (табы, 140, одинарные кавычки, в CSS — двойные);
  форматтер biome выключен, biome остаётся линтером и сортирует импорты.
- ESLint (flat config): js/typescript-eslint/react-hooks recommended + правила biome.json,
  eslint-config-prettier последним.
- npm run format / make format: eslint --fix → biome check --write → prettier --write.
- npm run lint: eslint + prettier --check; входит в make lint и make check.
- Разовое переформатирование 4 файлов, `(A | B)[]` вместо Array<…> в 3 местах,
  две находки ESLint в ConsoleTable (лишний `?? null`, тернарник-инструкция).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 17:15:14 +04:00

29 lines
614 B
Makefile

.PHONY: install format lint typecheck test build check start
install:
npm install
# Перед PR: eslint --fix → biome --write → prettier --write
format:
npm run format
lint:
npx biome check src
npm run lint
typecheck:
npx tsc --noEmit
test:
npm test
build:
npm run build
# Перед PR: всё вместе, вывод — в описание PR
check: install lint typecheck test build
# REACT_APP_ROOT_PATH=/ — иначе приложение ждёт префикс /aurora/apps/fastapi-dkb-armka и показывает белый экран
start:
REACT_APP_ROOT_PATH=/ npm run start