1.0.4 • Published 2 years ago

@infynno/eslint-config-nextjs v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Eslint Config Nextjs

This is a custom package used to configure eslint for projects at Infynno Solutions. Feel free to use it for your projects.

How to use

  1. Install the package
npm install --save-dev @infynno/eslint-config-nextjs

or

yarn add -D @infynno/eslint-config-nextjs

or

pnpm add -D @infynno/eslint-config-nextjs
  1. Extend your eslint config and add @infynno/eslint-config-nextjs.
{
  "extends": ["@infynno/eslint-config-nextjs"]
}

Why use this config?

  • Includes all Nextjs's recommended config guide (next/core-web-vitals)
  • Integrates prettier for code formatting using eslint-config-prettier and eslint-plugin-prettier
  • Automatically sorts your imports using react/jsx-sort-props
  • Automatically configures orders for your imports using import/order
  • Removes unused imports automatically using unused-imports