chore: finish frontend ESLint migration #18
Enable every plugin recommended preset and replace Biome with ESLint formatting. Preserve API contracts and JSX whitespace; verify source, tests, builds and tooling.
This commit is contained in:
+17
-15
@@ -3,37 +3,30 @@ import "@mantine/charts/styles.css";
|
||||
import "@mantine/dates/styles.css";
|
||||
import "@wealthledger/ui/styles.css";
|
||||
import "dayjs/locale/ru";
|
||||
|
||||
import "../src/shared/i18n";
|
||||
import type { Preview } from "@storybook/react-vite";
|
||||
|
||||
import { MantineProvider } from "@mantine/core";
|
||||
import { DatesProvider } from "@mantine/dates";
|
||||
import type { Preview } from "@storybook/react-vite";
|
||||
import { cssVariablesResolver, theme } from "@wealthledger/ui/theme";
|
||||
|
||||
const colorSchemeManager = {
|
||||
clear: () => {},
|
||||
get: () => "light" as const,
|
||||
set: () => {},
|
||||
clear: () => {},
|
||||
subscribe: () => {},
|
||||
unsubscribe: () => {},
|
||||
};
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
layout: "padded",
|
||||
options: {
|
||||
storySort: {
|
||||
order: ["Design System", ["Foundations", "Components"], "Product"],
|
||||
},
|
||||
},
|
||||
controls: { expanded: true },
|
||||
},
|
||||
decorators: [
|
||||
(Story) => (
|
||||
Story => (
|
||||
<MantineProvider
|
||||
cssVariablesResolver={cssVariablesResolver}
|
||||
theme={theme}
|
||||
forceColorScheme="light"
|
||||
colorSchemeManager={colorSchemeManager}
|
||||
cssVariablesResolver={cssVariablesResolver}
|
||||
forceColorScheme="light"
|
||||
theme={theme}
|
||||
>
|
||||
<DatesProvider settings={{ locale: "ru" }}>
|
||||
<Story />
|
||||
@@ -41,6 +34,15 @@ const preview: Preview = {
|
||||
</MantineProvider>
|
||||
),
|
||||
],
|
||||
parameters: {
|
||||
controls: { expanded: true },
|
||||
layout: "padded",
|
||||
options: {
|
||||
storySort: {
|
||||
order: ["Design System", ["Foundations", "Components"], "Product"],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default preview;
|
||||
|
||||
Reference in New Issue
Block a user