🎯

eslint

🎯Skill

from joabgonzalez/ai-agents-framework

VibeIndex|
What it does

Configures and enforces code quality standards using ESLint for JavaScript and TypeScript projects, with automatic linting and error correction.

πŸ“¦

Part of

joabgonzalez/ai-agents-framework(11 items)

eslint

Installation

npxRun with npx
npx ai-agents-skills add
npxRun with npx
npx ai-agents-skills add --preset project-sbd
npxRun with npx
npx ai-agents-skills add --skill react --skill typescript
npxRun with npx
npx ai-agents-skills add user/repo
npxRun with npx
npx ai-agents-skills add --preset project-sbd --models claude,github-copilot

+ 8 more commands

πŸ“– Extracted from docs: joabgonzalez/ai-agents-framework
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

"Enforcing code quality and best practices using ESLint in JavaScript and TypeScript projects. Configuration, rules, plugins, auto-fix. Trigger: When configuring ESLint rules, fixing linting errors, or enforcing code quality standards."

Overview

# ESLint Skill

Overview

This skill provides guidance for configuring and using ESLint to enforce code quality, consistency, and best practices in JavaScript and TypeScript projects.

Objective

Enable developers to maintain code quality through automated linting with proper ESLint configuration, rules, and integration with development workflow.

---

When to Use

Use this skill when:

  • Configuring ESLint for JavaScript/TypeScript projects
  • Setting up linting rules and plugins
  • Fixing linting errors in code
  • Integrating ESLint with editors and CI/CD
  • Enforcing code quality standards

Don't use this skill for:

  • Code formatting only (use prettier skill)
  • TypeScript type checking (use typescript skill)
  • Build configuration (use vite or webpack skills)

---

Critical Patterns

βœ… REQUIRED: Extend Recommended Configs

```javascript

// βœ… CORRECT: Extend recommended configs

module.exports = {

extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],

};

// ❌ WRONG: Starting from scratch

module.exports = {

rules: {

/ manually defining everything /

},

};

```

βœ… REQUIRED: Use TypeScript Parser for TS Projects

```javascript

// βœ… CORRECT: TypeScript parser

module.exports = {

parser: "@typescript-eslint/parser",

plugins: ["@typescript-eslint"],

};

// ❌ WRONG: Default parser for TypeScript

module.exports = {

// No parser specified for .ts files

};

```

βœ… REQUIRED: Run in CI/CD

```json

// package.json

{

"scripts": {

"lint": "eslint . --ext .js,.jsx,.ts,.tsx",

"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix"

}

}

```

---

Conventions

  • Use ESLint with TypeScript parser for TypeScript projects
  • Extend recommended configurations
  • Customize rules to match project standards
  • Integrate with editor for real-time feedback
  • Run ESLint in CI/CD pipeline

---

Decision Tree

TypeScript project? β†’ Use @typescript-eslint/parser and @typescript-eslint/recommended.

React project? β†’ Add plugin:react/recommended and plugin:react-hooks/recommended.

Need auto-fix? β†’ Run eslint --fix, configure editor to fix on save.

Custom rule needed? β†’ Add to rules object with "error", "warn", or "off".

Disable rule for line? β†’ Use // eslint-disable-next-line rule-name.

Monorepo? β†’ Use multiple .eslintrc files or override patterns.

Conflicting with Prettier? β†’ Use eslint-config-prettier to disable formatting rules.

---

Example

```javascript

// .eslintrc.js

module.exports = {

extends: [

"eslint:recommended",

"plugin:@typescript-eslint/recommended",

"plugin:react/recommended",

"plugin:react-hooks/recommended",

],

parser: "@typescript-eslint/parser",

plugins: ["@typescript-eslint", "react", "react-hooks"],

rules: {

"@typescript-eslint/no-explicit-any": "error",

"@typescript-eslint/explicit-function-return-type": "warn",

"react/prop-types": "off",

},

};

```

Edge Cases

  • Handle monorepo configurations
  • Configure for multiple environments (node, browser)
  • Manage rule exceptions with inline comments
  • Balance strictness with developer experience

References

  • https://eslint.org/docs/latest/
  • https://typescript-eslint.io/

More from this repository10

🎯
ag-grid🎯Skill

Configures advanced, accessible data tables in React using AG Grid with TypeScript-driven type safety and performance optimizations.

🎯
javascript🎯Skill

Generates, refactors, and debugs JavaScript code with best practices, offering intelligent suggestions for performance and clean architecture.

🎯
typescript🎯Skill

Provides advanced TypeScript code generation, type inference, refactoring, and best practice recommendations for robust software development

🎯
architecture-patterns🎯Skill

Provides expert guidance on software design patterns, architectural styles, and best practices for scalable and maintainable system architectures.

🎯
astro🎯Skill

Builds optimized, performant static and server-rendered websites using Astro, TypeScript, and minimal JavaScript with optional React component islands.

🎯
react🎯Skill

Generates React component structures, implements hooks, manages state, and provides best practices for scalable and performant web applications.

🎯
conventions🎯Skill

Validates and standardizes code structure, naming conventions, and best practices across programming languages and frameworks.

🎯
tailwindcss🎯Skill

Rapidly style web interfaces using utility-first CSS classes with Tailwind's responsive and customizable design system.

🎯
agent-creation🎯Skill

Guides users through creating standards-compliant agent definitions by enforcing context gathering, using markdown templates, and ensuring clarity and proper metadata.

🎯
a11y🎯Skill

Automates web accessibility testing, generating WCAG compliance reports and recommending fixes for inclusive digital experiences.