← All tools

ESLint Config Generator

Choose ESLint 8 presets, environments, parsers and rule overrides. Export .eslintrc.json with a list of required packages.

eslint-config-generatorLOCAL WORKSPACE

Enabling local controls…

Settings

Exports .eslintrc.json for ESLint 8. Configuration migration guide

Shared configurations
Environments and syntax
Rule overrides

Results

.eslintrc.json

{
  "root": true,
  "extends": [
    "eslint:recommended"
  ],
  "env": {
    "browser": true,
    "es2021": true
  },
  "parserOptions": {
    "ecmaVersion": 2021,
    "sourceType": "module"
  },
  "rules": {
    "no-unused-vars": "warn",
    "prefer-const": "error"
  }
}
Download .eslintrc.json

If the browser drops the leading dot, rename the downloaded file to .eslintrc.json.

Required packages

  • eslint@^8.57

How to use this tool

Choose ESLint 8 presets, environments, parsers and rule overrides. Export .eslintrc.json with a list of required packages.

When not to use it

Uses the legacy eslintrc format for ESLint 8. The selected plugins and parsers must be available in the target project.