A TypeScript-based library for generating ESLint configurations in the Flat Config format, targeting React (optional) and TypeScript (mandatory) projects.
- Generates ESLint Flat Configs for ESLint v9.
- Supports TypeScript and optionally React and NodeJS
- Config options:
strict
: Enables stricter linting rules.style
: Adds additional rules for style guidelines.
- Plugins for:
jsdoc
: Typescript-aware JSDoc lintingreact
: Recommended checks from the react, hooks and compiler presetsregexp
: Recommended mostly auto-fix rules for regular expressionsnode
: Recommended rules for development of ESM-enabled NodeJS scripts
- Tweaks:
biome
: Drop rules achievable by Biomefast
: Drop rules which require typing information (much faster)
- Automatically drops rules handled by Prettier.
npm install @effective/eslint-cfg
// eslint.config.ts
import { getConfig } from "@effective/eslint-cfg"
const config = getConfig({
react: true,
strict: true,
style: true
})
export default [
{
ignores: ["node_modules", "dist"]
},
{
settings: {
react: {
version: "19.0"
}
}
},
{
files: ["**/*.ts", "**/*.tsx"]
},
{
rules: {
// custom rules / overrides
}
}
]
pnpm run build
Apache License; Version 2.0, January 2004
Copyright 2024-2025
Sebastian Software GmbH