Utility to create ESLint config files through an interactive setup process.
npx @tessl/cli install tessl/npm-eslint--create-config@1.10.0@eslint/create-config is a command-line utility for creating ESLint configuration files through an interactive setup process. It simplifies the initial configuration of ESLint projects by guiding users through questions about their project structure, coding style preferences, and framework choices, then generates appropriate ESLint configuration files.
npm init @eslint/config@latest or npx @eslint/create-config@latestImportant: This package is designed as a CLI-only tool and does not provide a public programmatic API. All functionality is accessed through the command-line interface.
# Primary usage - interactive ESLint config creation
npm init @eslint/config@latest
# Alternative using npx
npx @eslint/create-config@latest# Interactive mode - prompts for configuration choices
npx @eslint/create-config@latest
# Alternative using npm init
npm init @eslint/config@latest
# Install globally for repeated use
npm install -g @eslint/create-config@latest
create-config# Use a specific shared configuration (flat config format)
npx @eslint/create-config@latest -- --config eslint-config-standard
# Use a specific shared configuration (legacy eslintrc format)
npx @eslint/create-config@latest -- --eslintrc --config eslint-config-standard
# Use scoped packages
npx @eslint/create-config@latest -- --config @company/eslint-config
# Use with popular configurations
npx @eslint/create-config@latest -- --config eslint-config-airbnb
npx @eslint/create-config@latest -- --config @eslint/eslint-config@eslint/create-config is built as a command-line utility with the following internal components:
bin/create-config.js) that handles command-line arguments and orchestrates the configuration processCommand-line interface for interactive ESLint configuration setup with support for direct configuration modes and legacy formats.
// Main CLI entry point (bin/create-config.js)
// Supports command-line arguments:
// --config <package-name>: Use specific shared configuration
// --eslintrc: Generate legacy eslintrc-style configurationAutomated ESLint configuration file creation based on user preferences, with support for various project types and frameworks.
# Generates eslint.config.js (flat config format, default)
npx @eslint/create-config@latest
# Generates .eslintrc.* (legacy format)
npx @eslint/create-config@latest -- --eslintrc --config <config-name>
# Output files created:
# - eslint.config.js (or .eslintrc.js/.eslintrc.json)
# - package.json (updated with devDependencies)For details about the configuration generation process, see the CLI Interface documentation.
The CLI uses interactive prompts to gather configuration preferences:
# Language Selection
"What do you want to lint?"
- JavaScript, JSON, Markdown, CSS options
# Purpose Selection
"How would you like to use ESLint?"
- Syntax checking only vs. syntax + problems
# JavaScript Configuration (if selected)
- Module type: ESM, CommonJS, or script
- Framework: React, Vue.js, or none
- TypeScript usage
- Environment: Browser, Node.js, or both
# Additional Options
- Config file language (JS vs TS)
- Package manager choice
- Dependency installation preference