0.2.1 • Published 8 months ago

@jay-es/eslint-config-nextjs-no-default-export v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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 eslint.config.js.

import noDefaultExport from "@jay-es/eslint-config-nextjs-no-default-export";

export default [
  // ...
  ...noDefaultExport,
];
0.2.1

8 months ago

0.2.0

8 months ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago