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
import { createConfig } from "@effective/eslint-cfg";
const config = createConfig({
react: true,
strict: true,
style: true,
biome: false,
});
// Output the generated configuration
console.log(config);
pnpm run build