mirror of
https://github.com/mantinedev/next-app-template.git
synced 2026-06-22 04:11:26 +10:00
Update oxfmt config
This commit is contained in:
+12
-19
@@ -2,25 +2,18 @@
|
|||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"importOrder": [
|
"sortImports": {
|
||||||
".*styles.css$",
|
"groups": [
|
||||||
"",
|
"side_effect_style",
|
||||||
"dayjs",
|
"external",
|
||||||
"^react$",
|
"internal",
|
||||||
"^next$",
|
["parent", "sibling", "index"],
|
||||||
"^next/.*$",
|
"style",
|
||||||
"<BUILTIN_MODULES>",
|
"unknown"
|
||||||
"<THIRD_PARTY_MODULES>",
|
],
|
||||||
"^@mantine/(.*)$",
|
"newlinesBetween": false,
|
||||||
"^@mantinex/(.*)$",
|
"order": "asc"
|
||||||
"^@mantine-tests/(.*)$",
|
},
|
||||||
"^@docs/(.*)$",
|
|
||||||
"^@/.*$",
|
|
||||||
"^../(?!.*\\.css$).*$",
|
|
||||||
"^./(?!.*\\.css$).*$",
|
|
||||||
"\\.module\\.css$",
|
|
||||||
"(?<!\\.module)\\.css$"
|
|
||||||
],
|
|
||||||
"sortPackageJson": false,
|
"sortPackageJson": false,
|
||||||
"ignorePatterns": [
|
"ignorePatterns": [
|
||||||
"*.d.ts",
|
"*.d.ts",
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
|
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { useGlobals } from 'storybook/preview-api';
|
import { useGlobals } from 'storybook/preview-api';
|
||||||
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
|
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export const parameters = {
|
export const parameters = {
|
||||||
|
|||||||
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
|
|
||||||
import React from 'react';
|
|
||||||
import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core';
|
import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core';
|
||||||
|
import React from 'react';
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { render as testingLibraryRender } from '@testing-library/react';
|
|
||||||
import { MantineProvider } from '@mantine/core';
|
import { MantineProvider } from '@mantine/core';
|
||||||
|
import { render as testingLibraryRender } from '@testing-library/react';
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export function render(ui: React.ReactNode) {
|
export function render(ui: React.ReactNode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user