Skip to content

tkodev/config-eslint-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@tkodev/config-eslint-next

Shared ESLint flat config for Next.js + TypeScript projects.

Install

pnpm add -D @tkodev/config-eslint-next eslint typescript

This config expects next to already be installed in the consuming project.

If using GitHub Packages, add this to your project .npmrc:

@tkodev:registry=https://npm.pkg.github.com

Usage

Create eslint.config.mjs in your project:

import tkodevEslintConfig from '@tkodev/config-eslint-next'
import { defineConfig } from 'eslint/config'

export default defineConfig([
  ...tkodevEslintConfig,
  // your project-specific rules/config entries here
])

Or use the helper:

import { withTkodevConfig } from '@tkodev/config-eslint-next'

export default withTkodevConfig([
  // your project-specific rules/config entries here
])

Publish to GitHub Packages

  1. Ensure package.json name is @tkodev/config-eslint-next.
  2. Create a GitHub token with write:packages and read:packages.
  3. Authenticate npm/pnpm for GitHub Packages:
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> ~/.npmrc
  1. Publish:
pnpm publish --access restricted --no-git-checks

Repository

https://github.com/tkodev/config-eslint-next

About

🧼 Shared ESLint 9 flat config for Next.js — Prettier, imports, and Tailwind sorting baked in.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors