Skip to content

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧹 kh4f's ESLint Config

version  downloads  ESLint version

A shareable ESLint config that provides:

  • strict, type-aware TypeScript rules
  • stylistic rules (tabs, single quotes, 1tbs, etc.)
  • optional React and Next.js rules

⚙️ Setup

bun a -d @kh4f/eslint-config
// eslint.config.ts
import { defineConfig } from 'eslint/config'
import kh4f from '@kh4f/eslint-config'

export default defineConfig([
	await kh4f(), // a standard flat config array
])
// or just
export default await kh4f()

For framework-specific rules, install the corresponding ESLint plugins and enable them via options:

bun a -d @eslint-react/eslint-plugin eslint-plugin-react-hooks
bun a -d @next/eslint-plugin-next
await kh4f({
	react: true, // React rules
	next: true, // Next.js rules (implies `react`)
})

Releases

Contributors

Languages