fix

Auto-fix ESLint violations in JavaScript and TypeScript codebases.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill fix-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/eslint/fix
Command: npx skills add https://github.com/theslashdojo/dojo --skill fix-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires eslint, and includes scripts (resource) components.

What problem does it solve?

This Skill automates correction of fixable ESLint rule violations to reduce manual edits, prevent style regressions, and integrate auto-fixing into developer workflows, pre-commit hooks, and CI pipelines.

Core Features & Use Cases

  • Auto-apply fixable ESLint violations across files with support for dry-run previews and caching to speed repeated runs.
  • Selectively apply fix categories such as problem, suggestion, layout, or directive and run fixes programmatically using the ESLint Node API.
  • Use cases include running fixes locally before committing, wiring eslint --fix into lint-staged pre-commit hooks, previewing changes in CI, and building automated code-style repair into custom tooling.

Quick Start

Run the included fix-lint script to preview or apply all fixable ESLint changes to the current project.

Frequently Asked Questions about fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix ESLint violations in JavaScript and TypeScript codebases?

To automatically fix ESLint violations in JavaScript and TypeScript codebases, you can run a script that applies ESLint's auto-fix functionality to correct fixable rule violations across your project files.

Can I preview ESLint auto-fix changes before applying them to my code?

Yes, you can preview ESLint auto-fix changes before applying them by using the dry-run mode, which allows you to review all fixable corrections without modifying your actual files.

How do I set up ESLint auto-fix in pre-commit hooks and CI pipelines?

You can set up ESLint auto-fix in pre-commit hooks and CI pipelines by integrating the fix command into lint-staged workflows, ensuring code style is automatically corrected before code is committed.

Does this ESLint auto-fixer support filtering specific fix categories like layout or suggestion?

Yes, the ESLint auto-fixer supports filtering specific fix categories. You can selectively apply fixes for problem, suggestion, layout, or directive categories using the fix-type filters.

Can I use the ESLint Node.js API to programmatically apply fixes to my files?

Yes, you can use the ESLint Node.js API to programmatically apply fixes. This allows you to build automated code-style repair into custom tooling by writing or previewing fixes directly through code.

Why are some ESLint violations not fixed by the automated autofix process?

Some ESLint violations are not fixed by the automated autofix process because certain rules do not have auto-fixers implemented. The tool will report these unfixable errors after applying all available corrections.