Update oxfmt config

This commit is contained in:
Vitaly Rtishchev
2026-04-18 15:56:18 +03:00
parent 48ebc3cf5e
commit 042329aa19
4 changed files with 15 additions and 24 deletions
+12 -19
View File
@@ -2,25 +2,18 @@
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"importOrder": [
".*styles.css$",
"",
"dayjs",
"^react$",
"^next$",
"^next/.*$",
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"^@mantine/(.*)$",
"^@mantinex/(.*)$",
"^@mantine-tests/(.*)$",
"^@docs/(.*)$",
"^@/.*$",
"^../(?!.*\\.css$).*$",
"^./(?!.*\\.css$).*$",
"\\.module\\.css$",
"(?<!\\.module)\\.css$"
],
"sortImports": {
"groups": [
"side_effect_style",
"external",
"internal",
["parent", "sibling", "index"],
"style",
"unknown"
],
"newlinesBetween": false,
"order": "asc"
},
"sortPackageJson": false,
"ignorePatterns": [
"*.d.ts",
+1 -2
View File
@@ -1,8 +1,7 @@
import '@mantine/core/styles.css';
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
import { useEffect } from 'react';
import { useGlobals } from 'storybook/preview-api';
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
import { theme } from '../theme';
export const parameters = {
+1 -2
View File
@@ -1,7 +1,6 @@
import '@mantine/core/styles.css';
import React from 'react';
import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core';
import React from 'react';
import { theme } from '../theme';
export const metadata = {
+1 -1
View File
@@ -1,5 +1,5 @@
import { render as testingLibraryRender } from '@testing-library/react';
import { MantineProvider } from '@mantine/core';
import { render as testingLibraryRender } from '@testing-library/react';
import { theme } from '../theme';
export function render(ui: React.ReactNode) {