mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-12 15:52:33 +10:00
Compare commits
75 Commits
sass-embed
...
renovate/m
| Author | SHA1 | Date | |
|---|---|---|---|
| fdd5caaa9e | |||
| 4b76ea6fd8 | |||
| dcbe29abd6 | |||
| 531f476ed0 | |||
| d93f938bc9 | |||
| 2a9bf8aa25 | |||
| 0eb5557881 | |||
| 161eea40d5 | |||
| 4bb12a4a28 | |||
| d9831e2cbd | |||
| 1924944ef2 | |||
| de0ee08e02 | |||
| 67e5781db0 | |||
| 801324e17e | |||
| dba951aee5 | |||
| ec459e32a1 | |||
| e41a6d974b | |||
| 7a9918204c | |||
| c6079c7741 | |||
| 596bfa3093 | |||
| 8926c997b9 | |||
| f3ab9bddb7 | |||
| 929c09edd7 | |||
| f5d9bc78ac | |||
| 0c327e8247 | |||
| 18effba097 | |||
| 316114717a | |||
| 835f4a9561 | |||
| fac653befc | |||
| 4298ec1a11 | |||
| 62f53ffef9 | |||
| 00b9d6b643 | |||
| 9738dd865c | |||
| 40f6fc48b9 | |||
| 0240e79c88 | |||
| 3c786b5a33 | |||
| a1af77b733 | |||
| e4d565fca8 | |||
| d8fddcc1d7 | |||
| 7ac48ade90 | |||
| 6e789e167a | |||
| 25c19542ab | |||
| 07643beb99 | |||
| e6e18446cb | |||
| 6c223a0d10 | |||
| 299c4e6215 | |||
| 2c6d23846e | |||
| 6b07d1e156 | |||
| d425e334e9 | |||
| 8ace050a57 | |||
| 30ca5b66a2 | |||
| f97a7f308c | |||
| a01844c8c7 | |||
| 0b3fc460e0 | |||
| 8d2a692c36 | |||
| 48952147df | |||
| 33de4133b7 | |||
| 476585ba0b | |||
| 756bfd1099 | |||
| 3c52527454 | |||
| 2bf3d76329 | |||
| 2d0e9095e9 | |||
| 9008798728 | |||
| d0d24039ae | |||
| da65f3102c | |||
| 9dc776f1b2 | |||
| 31af2255dd | |||
| 59f438dcf7 | |||
| 1daa7ca3a6 | |||
| 7d6ca574f8 | |||
| fe27d99406 | |||
| a8187cb00e | |||
| 0cd7976efd | |||
| b6feb6730e | |||
| 5948b21a22 |
@ -1,3 +0,0 @@
|
|||||||
*.cjs
|
|
||||||
*.mjs
|
|
||||||
*.js
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: ['mantine', 'plugin:@next/next/recommended', 'plugin:jest/recommended'],
|
|
||||||
plugins: ['testing-library', 'jest'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ['**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
||||||
extends: ['plugin:testing-library/react'],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
|
||||||
project: './tsconfig.json',
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'react/react-in-jsx-scope': 'off',
|
|
||||||
'import/extensions': 'off',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
4
.github/workflows/npm_test.yml
vendored
4
.github/workflows/npm_test.yml
vendored
@ -13,8 +13,8 @@ jobs:
|
|||||||
test_pull_request:
|
test_pull_request:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version-file: '.nvmrc'
|
node-version-file: '.nvmrc'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
.next
|
.next
|
||||||
|
next-env.d.ts
|
||||||
@ -7,7 +7,7 @@ const config: StorybookConfig = {
|
|||||||
enableCrashReports: false,
|
enableCrashReports: false,
|
||||||
},
|
},
|
||||||
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
|
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
|
||||||
addons: ['storybook-dark-mode'],
|
addons: ['@storybook/addon-themes'],
|
||||||
framework: {
|
framework: {
|
||||||
name: '@storybook/nextjs',
|
name: '@storybook/nextjs',
|
||||||
options: {},
|
options: {},
|
||||||
|
|||||||
@ -1,33 +1,41 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
|
|
||||||
import React, { useEffect } from 'react';
|
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
|
||||||
import { addons } from '@storybook/preview-api';
|
|
||||||
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
|
|
||||||
import { MantineProvider, useMantineColorScheme } from '@mantine/core';
|
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export const parameters = {
|
export const parameters = {
|
||||||
layout: 'fullscreen',
|
layout: 'fullscreen',
|
||||||
options: {
|
options: {
|
||||||
showPanel: false,
|
showPanel: false,
|
||||||
|
// @ts-expect-error – storybook throws build error for (a: any, b: any)
|
||||||
|
storySort: (a, b) => a.title.localeCompare(b.title, undefined, { numeric: true }),
|
||||||
|
},
|
||||||
|
backgrounds: { disable: true },
|
||||||
|
};
|
||||||
|
|
||||||
|
export const globalTypes = {
|
||||||
|
theme: {
|
||||||
|
name: 'Theme',
|
||||||
|
description: 'Mantine color scheme',
|
||||||
|
defaultValue: 'light',
|
||||||
|
toolbar: {
|
||||||
|
icon: 'mirror',
|
||||||
|
items: [
|
||||||
|
{ value: 'light', title: 'Light' },
|
||||||
|
{ value: 'dark', title: 'Dark' },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const channel = addons.getChannel();
|
|
||||||
|
|
||||||
function ColorSchemeWrapper({ children }: { children: React.ReactNode }) {
|
|
||||||
const { setColorScheme } = useMantineColorScheme();
|
|
||||||
const handleColorScheme = (value: boolean) => setColorScheme(value ? 'dark' : 'light');
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
channel.on(DARK_MODE_EVENT_NAME, handleColorScheme);
|
|
||||||
return () => channel.off(DARK_MODE_EVENT_NAME, handleColorScheme);
|
|
||||||
}, [channel]);
|
|
||||||
|
|
||||||
return <>{children}</>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const decorators = [
|
export const decorators = [
|
||||||
(renderStory: any) => <ColorSchemeWrapper>{renderStory()}</ColorSchemeWrapper>,
|
(renderStory: any, context: any) => {
|
||||||
(renderStory: any) => <MantineProvider theme={theme}>{renderStory()}</MantineProvider>,
|
const scheme = (context.globals.theme || 'light') as 'light' | 'dark';
|
||||||
|
return (
|
||||||
|
<MantineProvider theme={theme} forceColorScheme={scheme}>
|
||||||
|
<ColorSchemeScript />
|
||||||
|
{renderStory()}
|
||||||
|
</MantineProvider>
|
||||||
|
);
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
942
.yarn/releases/yarn-4.10.3.cjs
vendored
Executable file
942
.yarn/releases/yarn-4.10.3.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
934
.yarn/releases/yarn-4.5.1.cjs
vendored
934
.yarn/releases/yarn-4.5.1.cjs
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +1,3 @@
|
|||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.5.1.cjs
|
yarnPath: .yarn/releases/yarn-4.10.3.cjs
|
||||||
|
|||||||
@ -1,64 +0,0 @@
|
|||||||
@use 'sass:math';
|
|
||||||
|
|
||||||
// Define variables for your breakpoints,
|
|
||||||
// values must be the same as in your theme
|
|
||||||
$mantine-breakpoint-xs: '36em';
|
|
||||||
$mantine-breakpoint-sm: '48em';
|
|
||||||
$mantine-breakpoint-md: '62em';
|
|
||||||
$mantine-breakpoint-lg: '75em';
|
|
||||||
$mantine-breakpoint-xl: '88em';
|
|
||||||
|
|
||||||
@function rem($value) {
|
|
||||||
@return #{math.div(math.div($value, $value * 0 + 1), 16)}rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin light {
|
|
||||||
[data-mantine-color-scheme='light'] & {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin dark {
|
|
||||||
[data-mantine-color-scheme='dark'] & {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin hover {
|
|
||||||
@media (hover: hover) {
|
|
||||||
&:hover {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (hover: none) {
|
|
||||||
&:active {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin smaller-than($breakpoint) {
|
|
||||||
@media (max-width: $breakpoint) {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin larger-than($breakpoint) {
|
|
||||||
@media (min-width: $breakpoint) {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add direction mixins if you need rtl support
|
|
||||||
@mixin rtl {
|
|
||||||
[dir='rtl'] & {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin ltr {
|
|
||||||
[dir='ltr'] & {
|
|
||||||
@content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
|
import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core';
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
@ -11,7 +11,7 @@ export const metadata = {
|
|||||||
|
|
||||||
export default function RootLayout({ children }: { children: any }) {
|
export default function RootLayout({ children }: { children: any }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" {...mantineHtmlProps}>
|
||||||
<head>
|
<head>
|
||||||
<ColorSchemeScript />
|
<ColorSchemeScript />
|
||||||
<link rel="shortcut icon" href="/favicon.svg" />
|
<link rel="shortcut icon" href="/favicon.svg" />
|
||||||
|
|||||||
10
components/Welcome/Welcome.module.css
Normal file
10
components/Welcome/Welcome.module.css
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
.title {
|
||||||
|
color: light-dark(var(--mantine-color-black), var(--mantine-color-white));
|
||||||
|
font-size: rem(100px);
|
||||||
|
font-weight: 900;
|
||||||
|
letter-spacing: rem(-2px);
|
||||||
|
|
||||||
|
@media (max-width: $mantine-breakpoint-md) {
|
||||||
|
font-size: rem(50px);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,10 +0,0 @@
|
|||||||
.title {
|
|
||||||
color: light-dark(var(--mantine-color-black), var(--mantine-color-white));
|
|
||||||
font-size: mantine.rem(100px);
|
|
||||||
font-weight: 900;
|
|
||||||
letter-spacing: mantine.rem(-2px);
|
|
||||||
|
|
||||||
@media (max-width: mantine.$mantine-breakpoint-md) {
|
|
||||||
font-size: mantine.rem(50px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
import classes from './Welcome.module.scss';
|
|
||||||
import { Anchor, Text, Title } from '@mantine/core';
|
import { Anchor, Text, Title } from '@mantine/core';
|
||||||
|
import classes from './Welcome.module.css';
|
||||||
|
|
||||||
export function Welcome() {
|
export function Welcome() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
22
eslint.config.mjs
Normal file
22
eslint.config.mjs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import mantine from 'eslint-config-mantine';
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
|
||||||
|
// @ts-check
|
||||||
|
export default defineConfig(
|
||||||
|
tseslint.configs.recommended,
|
||||||
|
...mantine,
|
||||||
|
{ ignores: ['**/*.{mjs,cjs,js,d.ts,d.mts}', '.next'] },
|
||||||
|
{
|
||||||
|
files: ['**/*.story.tsx'],
|
||||||
|
rules: { 'no-console': 'off' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: {
|
||||||
|
tsconfigRootDir: process.cwd(),
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
||||||
3
next-env.d.ts
vendored
3
next-env.d.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
import "./.next/types/routes.d.ts";
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import path from 'path';
|
|
||||||
import bundleAnalyzer from '@next/bundle-analyzer';
|
import bundleAnalyzer from '@next/bundle-analyzer';
|
||||||
|
|
||||||
const withBundleAnalyzer = bundleAnalyzer({
|
const withBundleAnalyzer = bundleAnalyzer({
|
||||||
@ -7,15 +6,7 @@ const withBundleAnalyzer = bundleAnalyzer({
|
|||||||
|
|
||||||
export default withBundleAnalyzer({
|
export default withBundleAnalyzer({
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
eslint: {
|
|
||||||
ignoreDuringBuilds: true,
|
|
||||||
},
|
|
||||||
experimental: {
|
experimental: {
|
||||||
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
|
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
|
||||||
},
|
},
|
||||||
|
|
||||||
sassOptions: {
|
|
||||||
implementation: 'sass-embedded',
|
|
||||||
additionalData: `@use "${path.join(process.cwd(), '_mantine')}" as mantine;`,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|||||||
90
package.json
90
package.json
@ -8,8 +8,9 @@
|
|||||||
"analyze": "ANALYZE=true next build",
|
"analyze": "ANALYZE=true next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"lint": "next lint && npm run lint:stylelint",
|
"lint": "npm run eslint && npm run stylelint",
|
||||||
"lint:stylelint": "stylelint '**/*.css' --cache",
|
"eslint": "eslint .",
|
||||||
|
"stylelint": "stylelint '**/*.css' --cache",
|
||||||
"jest": "jest",
|
"jest": "jest",
|
||||||
"jest:watch": "jest --watch",
|
"jest:watch": "jest --watch",
|
||||||
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
|
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
|
||||||
@ -19,53 +20,48 @@
|
|||||||
"storybook:build": "storybook build"
|
"storybook:build": "storybook build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mantine/core": "7.13.4",
|
"@mantine/core": "8.3.6",
|
||||||
"@mantine/hooks": "7.13.4",
|
"@mantine/hooks": "8.3.6",
|
||||||
"@next/bundle-analyzer": "^14.2.4",
|
"@next/bundle-analyzer": "^16.0.0",
|
||||||
"@tabler/icons-react": "^3.6.0",
|
"@tabler/icons-react": "^3.35.0",
|
||||||
"next": "15.0.1",
|
"next": "16.0.1",
|
||||||
"react": "18.3.1",
|
"react": "19.2.0",
|
||||||
"react-dom": "18.3.1"
|
"react-dom": "19.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.7",
|
"@babel/core": "^7.28.4",
|
||||||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
"@eslint/eslintrc": "^3",
|
||||||
"@next/eslint-plugin-next": "^14.2.4",
|
"@eslint/js": "^9.37.0",
|
||||||
"@storybook/nextjs": "^8.1.10",
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
||||||
"@storybook/react": "^8.1.10",
|
"@storybook/addon-themes": "^10.0.0",
|
||||||
"@testing-library/dom": "^10.1.0",
|
"@storybook/nextjs": "^10.0.0",
|
||||||
"@testing-library/jest-dom": "^6.4.6",
|
"@storybook/react": "^10.0.0",
|
||||||
"@testing-library/react": "^16.0.0",
|
"@testing-library/dom": "^10.4.1",
|
||||||
"@testing-library/user-event": "^14.5.2",
|
"@testing-library/jest-dom": "^6.9.1",
|
||||||
"@types/jest": "^29.5.12",
|
"@testing-library/react": "^16.3.0",
|
||||||
"@types/node": "^20.14.8",
|
"@testing-library/user-event": "^14.6.1",
|
||||||
"@types/react": "18.3.3",
|
"@types/eslint-plugin-jsx-a11y": "^6",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
"@types/jest": "^30.0.0",
|
||||||
"@typescript-eslint/parser": "^7.13.1",
|
"@types/node": "^24.7.1",
|
||||||
"babel-loader": "^9.1.3",
|
"@types/react": "19.2.2",
|
||||||
"eslint": "^8.57.0",
|
"babel-loader": "^10.0.0",
|
||||||
"eslint-config-airbnb": "19.0.4",
|
"eslint": "^9.37.0",
|
||||||
"eslint-config-airbnb-typescript": "^18.0.0",
|
"eslint-config-mantine": "^4.0.3",
|
||||||
"eslint-config-mantine": "3.2.0",
|
"eslint-config-next": "16.0.1",
|
||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||||
"eslint-plugin-jest": "^28.6.0",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-jsx-a11y": "^6.9.0",
|
"jest": "^30.2.0",
|
||||||
"eslint-plugin-react": "^7.34.3",
|
"jest-environment-jsdom": "^30.2.0",
|
||||||
"eslint-plugin-react-hooks": "^4.6.2",
|
"postcss": "^8.5.6",
|
||||||
"eslint-plugin-testing-library": "^6.2.2",
|
"postcss-preset-mantine": "1.18.0",
|
||||||
"jest": "^29.7.0",
|
|
||||||
"jest-environment-jsdom": "^29.7.0",
|
|
||||||
"postcss": "^8.4.38",
|
|
||||||
"postcss-preset-mantine": "1.17.0",
|
|
||||||
"postcss-simple-vars": "^7.0.1",
|
"postcss-simple-vars": "^7.0.1",
|
||||||
"prettier": "^3.3.2",
|
"prettier": "^3.6.2",
|
||||||
"sass-embedded": "^1.80.6",
|
"storybook": "^10.0.0",
|
||||||
"storybook": "^8.1.10",
|
"stylelint": "^16.25.0",
|
||||||
"storybook-dark-mode": "^4.0.2",
|
"stylelint-config-standard-scss": "^16.0.0",
|
||||||
"stylelint": "^16.6.1",
|
"ts-jest": "^29.4.4",
|
||||||
"stylelint-config-standard-scss": "^13.1.0",
|
"typescript": "5.9.3",
|
||||||
"ts-jest": "^29.1.5",
|
"typescript-eslint": "^8.46.0"
|
||||||
"typescript": "5.5.2"
|
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.5.1"
|
"packageManager": "yarn@4.10.3"
|
||||||
}
|
}
|
||||||
|
|||||||
13
renovate.json
Normal file
13
renovate.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"schedule": ["before 5am on sunday"],
|
||||||
|
"groupName": "all dependencies",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchPackagePatterns": ["*"],
|
||||||
|
"groupName": "all dependencies"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"prHourlyLimit": 0,
|
||||||
|
"prConcurrentLimit": 0
|
||||||
|
}
|
||||||
@ -5,7 +5,9 @@ import { theme } from '../theme';
|
|||||||
export function render(ui: React.ReactNode) {
|
export function render(ui: React.ReactNode) {
|
||||||
return testingLibraryRender(<>{ui}</>, {
|
return testingLibraryRender(<>{ui}</>, {
|
||||||
wrapper: ({ children }: { children: React.ReactNode }) => (
|
wrapper: ({ children }: { children: React.ReactNode }) => (
|
||||||
<MantineProvider theme={theme}>{children}</MantineProvider>
|
<MantineProvider theme={theme} env="test">
|
||||||
|
{children}
|
||||||
|
</MantineProvider>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,16 +10,28 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "react-jsx",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
},
|
},
|
||||||
"plugins": [{ "name": "next" }]
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": [
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
".storybook/main.ts",
|
||||||
|
".storybook/preview.tsx",
|
||||||
|
"next-env.d.ts",
|
||||||
|
".next/types/**/*.ts",
|
||||||
|
".next/dev/types/**/*.ts"
|
||||||
|
],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user