Skip to content

Instantly share code, notes, and snippets.

@majudhu
Last active April 16, 2022 09:48
Show Gist options
  • Save majudhu/f03e8333c09167c728f04897e5978eeb to your computer and use it in GitHub Desktop.
Save majudhu/f03e8333c09167c728f04897e5978eeb to your computer and use it in GitHub Desktop.
nextjs eslint tailwind next config
{
"env": {
"browser": true,
"node": true,
"es2021": true
},
"extends": ["eslint:recommended", "next"],
"rules": {
"@next/next/no-img-element": "off",
"jsx-a11y/alt-text": "off",
"no-unused-vars": "warn"
}
}
{
"tabWidth": 2,
"useTabs": false,
"trailingComma": "es5",
"semi": true,
"singleQuote": true,
"jsxSingleQuote": true
}
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
scrollRestoration: true,
};
/** @type {import('tailwindcss/tailwind-config').TailwindConfig} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
@majudhu
Copy link
Author

majudhu commented Mar 5, 2022

npm install @headlessui/react iron-session @node-rs/argon2 date-fns @heroicons/react axios mongoose multer react-hot-toast 
npm install -D tailwindcss postcss autoprefixer prettier-plugin-tailwindcssn prettier prettier-plugin-tailwindcss @tailwindcss/forms 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment