An AST-based pattern checker for JavaScript.. Use when: ESLint uses Espree for JavaScript parsing; ESLint uses an AST to evaluate patterns in code; ESLint is completely pluggable, every single rule is a plugin and you can add more at runtime. NOT for: runtime data validation; security scanning.
Install
npx skillscat add yusenthebot/skills-pack/eslint Install via the SkillsCat registry.
SKILL.md
eslint
Overview
An AST-based pattern checker for JavaScript..
# ESLint Website | Configure ESLint | Rules | Contribute to ESLint | Report Bugs | Code of Conduct | X | Discord | Mastodon | Bluesky ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
Installation
npm install eslintCore API / Usage
npm init @eslint/config@latestnpx eslint yourfile.jsCommon Patterns
Pattern 1
This ensures that pnpm installs dependencies in a way that is more compatible with npm and is less likely to produce errors.
## Configuration
You can configure rules in your `eslint.config.js` files as in this example:Configuration
npm init @eslint/config@latestTips & Gotchas
- Supports both ESM (
import) and CommonJS (require()). - Current version: 10.0.2. Check the changelog when upgrading across major versions.