eslint
Installation
SKILL.md
ESLint Best Practices
Provides guidance for configuring ESLint using the modern flat config format (eslint.config.js), selecting and tuning rules, managing plugins, and integrating linting into CI/CD workflows.
Core Concepts
- Flat config (
eslint.config.js) is the current standard. The legacy.eslintrc.*format is deprecated as of ESLint v9. - Configuration objects are merged in order — later objects override earlier ones for the same rule.
- Rule severities:
"off"(0) |"warn"(1) |"error"(2). - Plugins extend ESLint with additional rules, processors, and languages. Reference as
pluginName/ruleName.
Setup
Quick initialization (recommended)
npm init @eslint/config@latest