@jay-es/eslint-config-nextjs-no-default-export

0.1.2 • Public • Published

eslint-config-nextjs-no-default-export

ESLint configuration for Next.js.
Enforce default exports in App Router's special files (e.g. page.js), and prohibit it in other files.

Usage

Install packages.

npm install -D @jay-es/eslint-config-nextjs-no-default-export eslint-plugin-import

And then add to .eslintrc.

{
  "extends": [
    // ...
    "@jay-es/nextjs-no-default-export"
  ]
}

Package Sidebar

Install

npm i @jay-es/eslint-config-nextjs-no-default-export

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

3.14 kB

Total Files

4

Last publish

Collaborators

  • jay-es