Ecosyste.ms: Awesome
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: 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.
- Host: GitHub
- URL: https://github.com/jay-es/eslint-config-nextjs-no-default-export
- Owner: jay-es
- License: mit
- Created: 2023-08-31T11:18:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-01T11:11:48.000Z (over 1 year ago)
- Last Synced: 2024-10-07T20:36:43.287Z (3 months ago)
- Topics: eslint, eslint-config, nextjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@jay-es/eslint-config-nextjs-no-default-export
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
]
}
```