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

  1. Pick the framework/environment and module type.
  2. Toggle common rule groups.
  3. Copy the generated config.

Examples

Rule
"no-unused-vars": "warn"

Frequently asked questions

It generates the modern flat config (eslint.config.js) format.
Contact

Let’s connect

Have a Liferay or Backend project you’d like to talk through? Fill in the form and I’ll get back to you.

Book Calendar