Overview
The@zayne-labs/eslint-config provides an opinionated ESLint configuration with sensible defaults and zero-config setup. It works out-of-the-box with TypeScript, JSX, Vue, JSON, YAML, TOML, Markdown, and more.
Key Features
- One-line setup with reasonable defaults and best practices
- ESLint Flat config for easy composition
- Respects
.gitignoreby default - Highly customizable when needed
- Interactive CLI for easy setup
- Requires ESLint v9.5.0+ and Node.js v20+
Installation
- Interactive CLI (Recommended)
- Manual Installation
The CLI provides the easiest way to set up your ESLint configuration:
Follow the prompts
The CLI will guide you through:
- Framework selection (React, Vue, Svelte, Astro)
- Additional integrations (TailwindCSS, etc.)
- Automatic dependency installation
Legacy Config Migration
Combining with existing eslintrc configs
Combining with existing eslintrc configs
If you have existing eslintrc configs, use
@eslint/eslintrc to convert them:.eslintignore no longer works in flat config. Use the ignores option instead.IDE Configuration
Configure your editor to auto-fix ESLint issues on save for the best development experience.- VS Code
- Neovim
Install the ESLint extension
Install the ESLint extension from the VS Code marketplace.
Running ESLint
Once configured, you can run ESLint using the package scripts:Inspecting Your Configuration
View your active ESLint rules and configuration using the ESLint Config Inspector:Next Steps
Customize Rules
Learn how to customize rules and override defaults
Framework Setup
Configure ESLint for React, Vue, Svelte, and more
