This package provides an ESLint configuration tailored for Next.js projects, integrating both Prettier and Tailwind CSS. Ensure that Prettier and Tailwindcss are installed in your project before proceeding.
npm install -D @hoangdevnull/eslint-config-next
This command installs the package along with all necessary peer dependencies.
After installation, set up the ESLint configurreating a file named .eslintrc.js in the root directory of your Next.js project. Populate this file with the following code to extend the ESLint rules from this package:ation by c
module.exports = {
extends: ["@hoangdevnull/eslint-config-next"],
};
This setup will incorporate the custom ESLint rules provided by @hoangdevnull/eslint-config-next into your project, enabling a consistent coding style that leverages the best practices of Next.js, Prettier, and Tailwind CSS.