ConfigDeck
Back to Generator

eslint.config.mjs

Generate a modern ESLint flat config with TypeScript, framework support, and custom rules.

Preset

Language & Framework

Select your project language and framework. Imports and plugins are auto-configured.

Language

Selecting TypeScript adds the @typescript-eslint plugin.

Framework

Framework-specific ESLint plugins and rules will be added.

Plugins & Integrations

Configure additional plugins and tool integrations.

Key Rules

ESLint provides hundreds of rules, but here you can configure only the key rules that commonly differ between projects.

Restrict console.log usage. Useful for enforcing console removal in production.

Detect declared but unused variables. Uses @typescript-eslint version for TypeScript.

Enforce const for variables that are never reassigned.

Enforce === instead of ==.

Enforce curly braces for control flow statements.

Restrict the use of debugger statements.

Restrict the use of alert, confirm, and prompt.

Enforce let/const instead of var.