@zemd/eslint-next
v2.0.4
Published
Shared ESLint config for next.js projects
Downloads
444
Maintainers
Readme
Shared ESLint config for next.js projects
This package includes a set of ESLint configurations for Next.js projects.
The package includes:
| Package | Description | Rules | License |
| -------------------------- | ------------------------------ | ---------------------------------------------------------------------------------------- | ---------- |
| @zemd/eslint-rock | | | Apache 2.0 |
| @next/eslint-plugin-next | Official next.js eslint plugin | recommended, core-web-vitals and additional fixes for the react-refresh if enabled | MIT |
Installation
npm install --save-dev @zemd/eslint-nextUsage
Basic Setup
// eslint.config.js
import next from "@zemd/eslint-next";
export default [...next()];More Advanced Setup
You can cherry-pick only what you need:
// eslint.config.js
// you can import any rule set separately from the underlying packages
// if you want to get the rules for the next.js, just import it from the package
import { next, javascript, typescript, react } from "@zemd/eslint-next";
export default [...next(), ...javascript(), ...typescript(), ...react()];You might be also interested in
| Package | Version | Description |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| @zemd/eslint-js | | JavaScript-only rules. |
|
@zemd/eslint-ts | | TypeScript rules (includes JS rules from @zemd/eslint-js). |
|
@zemd/eslint-react | | React rules (includes TS rules from
@zemd/eslint-ts and JS rules from @zemd/eslint-js). |
| @zemd/eslint-rock-stack | | Rules for Fullstack projects that include React.js, GraphQL, Playwright, Tailwind(optional), Turbo, Vitest, and Storybook. |
|
@zemd/eslint-next | | Rules for Next.js projects (inherits from
@zemd/eslint-rock-stack). |
| @zemd/eslint-astro | | Rules for Astro based projects (includes rules
@zemd/eslint-react by default). |
License
The @zemd/eslint-next is licensed under Apache-2.0 license 😇.
