ESLint 9 Flat Config Ready
Generate Your
eslint.config.js
Stop copy-pasting ESLint configs. Pick your framework, toggle TypeScript and Prettier, choose a rule preset — download a ready-to-use flat config in seconds.
⚡
Instant Generation
Configure your options and get a valid eslint.config.js or eslint.config.mjs with correct imports and plugins instantly.
🔧
Framework-Specific Rules
Includes React Hooks, React Refresh, Vue, and Next.js-specific plugin configs out of the box.
🎯
TypeScript & Prettier
Toggle TypeScript support with typescript-eslint and Prettier integration with a single click.
Configuration Options
Safe baseline rules for most projects
Install:
npm install --save-dev eslint @eslint/js globals typescript-eslint eslint-plugin-react-hooks eslint-plugin-react-refresh eslint-config-prettiereslint.config.ts
// Install dependencies first:
// npm install --save-dev eslint @eslint/js globals typescript-eslint eslint-plugin-react-hooks eslint-plugin-react-refresh eslint-config-prettier
import tseslint from "typescript-eslint";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import prettierConfig from "eslint-config-prettier";
export default tseslint.config(
{ ignores: ["dist", ".next", "node_modules"] },
{
extends: [
...tseslint.configs.recommended,
prettierConfig,
],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
},
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
},
},
);Frequently Asked Questions
Everything you need to know about ESLint Flat Config Generator.