ESLint Config Generator
Generate an ESLint flat config.
ESLint options
eslint.config.js
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import react from "eslint-plugin-react";
export default [
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{js,jsx,ts,tsx}"],
plugins: {
react,
},
settings: {
react: { version: "detect" },
},
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
semi: ["error", "always"],
quotes: ["error", "double"],
"no-unused-vars": "warn",
},
},
];
About this tool
Choose your framework and preferences to generate an ESLint config file you can extend.
How to use
- Pick the framework/environment and module type.
- Toggle common rule groups.
- Copy the generated config.
Examples
Rule
"no-unused-vars": "warn"
Frequently asked questions
It generates the modern flat config (eslint.config.js) format.