arm-web/src/index.tsx
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

48 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createRoot } from 'react-dom/client';
import './index.css';
import { ConfigProvider } from 'antd';
import App from './App';
const rootElement = document.getElementById('root');
if (!rootElement) {
throw new Error('Не найден корневой элемент #root');
}
createRoot(rootElement).render(
// <StrictMode>
<ConfigProvider
theme={{
token: {
colorPrimary: 'rgba(46, 166, 75, 0.8)',
fontFamily: 'Geist',
// colorPrimaryHover: "black",
colorBgLayout: 'rgb(247, 248, 250)',
colorBgTextHover: '#f8fafc',
},
components: {
Layout: {
siderBg: '#fff',
},
Button: {
defaultBorderColor: '#c7cdd5',
defaultHoverBg: '#f8fafc',
defaultHoverColor: 'black',
defaultHoverBorderColor: '#c7cdd5',
fontWeight: 500,
},
Input: {
activeBorderColor: 'rgba(46, 166, 75, 0.35)',
activeShadow: '0 0 0 1px #2ea64b59,0 1px 2px #0000000f',
hoverBorderColor: 'rgba(46, 166, 75, 0.35)',
},
Table: {
headerColor: '#667085',
headerBg: 'rgb(248, 250, 252)',
},
},
}}>
<App />
</ConfigProvider>,
// </StrictMode>,
);