@dephub/lint-next
v1.0.0
Published
Lint runner for Next.js projects with built-in React + TypeScript support. Fully compatible with ESLint.
Maintainers
Readme
@dephub/lint-next ⬛
Lint runner for Next.js projects with built-in React + TypeScript support. Fully compatible with ESLint.
Features ✨
- ⚡ Run linting quickly with the
@dephub/lintCLI - 🎨 Comes with a default Next.js + React + TypeScript configuration via
@dephub/lint-next - 🔍 Enforces best practices for Next.js, React, and TS rules
- ✅ Includes Core Web Vitals and recommended Next.js ESLint rules
- 🔀 Supports import sorting, unused import cleanup, and Prettier formatting
- ✅ Fully compatible with ESLint
Installation 📦
# npm
npm install @dephub/lint @dephub/lint-next
# pnpm
pnpm add @dephub/lint @dephub/lint-next
# yarn
yarn add @dephub/lint @dephub/lint-next
# bun
bun add @dephub/lint @dephub/lint-nextUsage 🎯
CLI 💻
Run linting in your Next.js project:
lintIt automatically detects lint.config.mjs or falls back to @dephub/lint-next.
Config / API 🧩
Create lint.config.mjs:
import { defineConfig } from '@dephub/lint';
import nextConfig from '@dephub/lint-next';
export default defineConfig([
...nextConfig,
{
rules: {
...nextConfig.rules,
'react/jsx-no-useless-fragment': 'off',
},
},
]);This allows you to extend the default Next.js config while keeping all built-in rules.
License 📄
MIT License – see LICENSE for details.
Author: Estarlin R (estarlincito.com)
