- 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>
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
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>,
|
||
);
|