An open API service indexing awesome lists of open source software.

https://github.com/jay-es/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.
https://github.com/jay-es/eslint-config-nextjs-no-default-export

eslint eslint-config nextjs

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.

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

And then add to `eslint.config.js`.

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

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