-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[examples] Switch Next.js examples to ESM, remove unnecessary type #125
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Karl Horky <[email protected]>
Signed-off-by: Karl Horky <[email protected]>
Cool. I guess we should update https://github.com/mui/pigment-css/blob/master/examples/pigment-css-nextjs-ts/ too? |
|
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"moduleResolution": "bundler", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new tsconfig.json defaults
{ | ||
"extends": "next/core-web-vitals" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default ESLint config with create-next-app
"@/*": ["./src/*"] | ||
"@/*": ["./*"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default is non-src dir
Hi @oliviertassinari and others, first of all, thanks for Pigment CSS! I will recommend this to our students at @upleveled :)
Quick PR to fix the Next.js "manual installation" example:
next.config.mjs
is now ESM by default since a whilecreate-next-app