From 04aa62a04192819672390bf783b589502acc36af Mon Sep 17 00:00:00 2001 From: "S.Gromov" Date: Sun, 29 Mar 2026 13:06:51 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D1=80=D0=B0=D0=B7=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BB=D0=B0=D1=81=D0=B8=D1=8F=20=D0=B2=20=D0=B4=D0=BE=D0=BA?= =?UTF-8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Заменён .scss на .css в разделе Компоненты - Заменён globals.css на ./styles/index.css в layout.tsx - Провайдеры вынесены в app/providers/ вместо инлайн-импорта - Обновлён quickfix.biome на source.fixAll.biome (Biome 2.x) - Breakpoints и радиусы оставлены без изменений (36/62/82em, --radius-1/2) --- docs/ru/applied/components.md | 6 +++--- docs/ru/applied/page-level.md | 12 ++++-------- docs/ru/applied/vscode.md | 4 ++-- generated/ru/RULES.md | 22 +++++++++------------- 4 files changed, 18 insertions(+), 26 deletions(-) diff --git a/docs/ru/applied/components.md b/docs/ru/applied/components.md index 79169e6..2eea2a8 100644 --- a/docs/ru/applied/components.md +++ b/docs/ru/applied/components.md @@ -13,7 +13,7 @@ title: Компоненты ```text container/ ├── styles/ -│ └── container.module.scss +│ └── container.module.css ├── types/ │ └── container.interface.ts ├── container.tsx @@ -22,7 +22,7 @@ container/ ## Пример базового компонента -`styles/container.module.scss` +`styles/container.module.css` ```scss .root {} ``` @@ -45,7 +45,7 @@ export interface ContainerProps extends HTMLAttributes {} import type { FC } from 'react' import cl from 'clsx' import type { ContainerProps } from './types/container.interface' -import styles from './styles/container.module.scss' +import styles from './styles/container.module.css' /** * Контейнер с адаптивной максимальной шириной. diff --git a/docs/ru/applied/page-level.md b/docs/ru/applied/page-level.md index 3b327e6..cbe6da5 100644 --- a/docs/ru/applied/page-level.md +++ b/docs/ru/applied/page-level.md @@ -21,9 +21,8 @@ title: Page-level компоненты ```tsx import type { PropsWithChildren } from 'react' import type { Metadata } from 'next' -import { ColorSchemeScript, MantineProvider } from '@mantine/core' -import '@mantine/core/styles.css' -import './globals.css' +import { Providers } from './providers' +import './styles/index.css' export const metadata: Metadata = { title: { @@ -53,13 +52,10 @@ export const metadata: Metadata = { export default function RootLayout({ children }: PropsWithChildren) { return ( - - - - + {children} - + ) diff --git a/docs/ru/applied/vscode.md b/docs/ru/applied/vscode.md index bc089f5..cbd7db8 100644 --- a/docs/ru/applied/vscode.md +++ b/docs/ru/applied/vscode.md @@ -53,7 +53,7 @@ title: Настройка VS Code "editor.defaultFormatter": "biomejs.biome", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "quickfix.biome": "explicit", + "source.fixAll.biome": "explicit", "source.organizeImports.biome": "explicit" }, "files.associations": { @@ -68,7 +68,7 @@ title: Настройка VS Code |---|---|---| | `editor.defaultFormatter` | `biomejs.biome` | Biome используется как единственный форматтер для всех файлов | | `editor.formatOnSave` | `true` | Код автоматически форматируется при каждом сохранении | -| `codeActionsOnSave.quickfix.biome` | `explicit` | Biome автоматически применяет безопасные исправления при сохранении | +| `codeActionsOnSave.source.fixAll.biome` | `explicit` | Biome автоматически применяет безопасные исправления при сохранении | | `codeActionsOnSave.source.organizeImports.biome` | `explicit` | Импорты сортируются и группируются автоматически при сохранении | | `files.associations` | `"*.css": "postcss"` | Все CSS-файлы открываются с подсветкой PostCSS вместо стандартного CSS | diff --git a/generated/ru/RULES.md b/generated/ru/RULES.md index 0a2d7cc..e1220fd 100644 --- a/generated/ru/RULES.md +++ b/generated/ru/RULES.md @@ -830,7 +830,7 @@ const parse = (value: any) => value; "editor.defaultFormatter": "biomejs.biome", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "quickfix.biome": "explicit", + "source.fixAll.biome": "explicit", "source.organizeImports.biome": "explicit" }, "files.associations": { @@ -845,7 +845,7 @@ const parse = (value: any) => value; |---|---|---| | `editor.defaultFormatter` | `biomejs.biome` | Biome используется как единственный форматтер для всех файлов | | `editor.formatOnSave` | `true` | Код автоматически форматируется при каждом сохранении | -| `codeActionsOnSave.quickfix.biome` | `explicit` | Biome автоматически применяет безопасные исправления при сохранении | +| `codeActionsOnSave.source.fixAll.biome` | `explicit` | Biome автоматически применяет безопасные исправления при сохранении | | `codeActionsOnSave.source.organizeImports.biome` | `explicit` | Импорты сортируются и группируются автоматически при сохранении | | `files.associations` | `"*.css": "postcss"` | Все CSS-файлы открываются с подсветкой PostCSS вместо стандартного CSS | @@ -1022,7 +1022,7 @@ src/ ```text container/ ├── styles/ -│ └── container.module.scss +│ └── container.module.css ├── types/ │ └── container.interface.ts ├── container.tsx @@ -1031,7 +1031,7 @@ container/ ### Пример базового компонента -`styles/container.module.scss` +`styles/container.module.css` ```scss .root {} ``` @@ -1054,7 +1054,7 @@ export interface ContainerProps extends HTMLAttributes {} import type { FC } from 'react' import cl from 'clsx' import type { ContainerProps } from './types/container.interface' -import styles from './styles/container.module.scss' +import styles from './styles/container.module.css' /** * Контейнер с адаптивной максимальной шириной. @@ -1117,9 +1117,8 @@ export { Container } from './container' ```tsx import type { PropsWithChildren } from 'react' import type { Metadata } from 'next' -import { ColorSchemeScript, MantineProvider } from '@mantine/core' -import '@mantine/core/styles.css' -import './globals.css' +import { Providers } from './providers' +import './styles/index.css' export const metadata: Metadata = { title: { @@ -1149,13 +1148,10 @@ export const metadata: Metadata = { export default function RootLayout({ children }: PropsWithChildren) { return ( - - - - + {children} - + )