Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 2 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 `.eslintrc`.

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