@hoangdevnull/eslint-config-next
v1.0.1
Published
ESLint configuration for front-end projects.
Downloads
153
Maintainers
Readme
@hoangdevnull/eslint-config-next
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.
Installation
npm install -D @hoangdevnull/eslint-config-next
This command installs the package along with all necessary peer dependencies.
Configuration
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.