lint-and-format

Run ESLint, Prettier, and Elixir formatting checks before commits.

56|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/matteing/opal --skill lint-and-format
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint-and-format
Source: https://github.com/matteing/opal/tree/main/.claude/skills/lint-and-format
Command: npx skills add https://github.com/matteing/opal --skill lint-and-format

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents commits that fail linting or formatting by running the project's linters and formatters and mirroring CI checks so issues are detected and fixed before code reaches version control.

Core Features & Use Cases

  • Runs Elixir formatting and lint checks via mise for lib, test, and config directories.
  • Runs ESLint and Prettier checks and auto-fix commands for cli TypeScript/JavaScript code.
  • Use Case: After editing code, run the checks, apply auto-fixes if available, review changes, and only then stage and commit to avoid CI failures.

Quick Start

Run the lint-and-format skill to check all linters and apply auto-fixes before staging and committing your changes.

Frequently Asked Questions about lint-and-format

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

FAQPage Schema
How do I ensure my Elixir code passes formatting and linting before a commit?

To prevent CI failures, run lint-and-format checks before staging your changes. This validates Elixir, JavaScript, and TypeScript code, applies auto-fixes where available, and ensures your commit passes all formatting and linting rules.

How do I run ESLint and Prettier checks before pushing JavaScript and TypeScript code?

Run ESLint and Prettier checks and auto-fix commands for JavaScript and TypeScript code in the cli directory. This process validates formatting and corrects issues before code reaches version control.

Can I automatically fix linting and formatting issues before staging files?

Yes, you can automatically fix linting and formatting issues before staging. The process executes package scripts to run auto-fix commands, allowing you to review corrections and then stage only clean, formatted code.

Does pre-commit linting work for both Elixir and JavaScript in the same project?

Pre-commit linting works for both Elixir and JavaScript in the same project. It runs Elixir formatting via mise alongside ESLint and Prettier for TypeScript and JavaScript, validating both ecosystems before creating a commit.

Why should I run local formatting checks that mirror my CI pipeline?

You should run local formatting checks that mirror your CI pipeline to detect and fix issues before code reaches version control. This prevents commits that would fail CI validation, saving time and reducing build failures.

What is the best way to prevent pre-commit failures caused by linting errors?

The best way to prevent pre-commit failures caused by linting errors is to execute local linters and formatters that mirror CI checks. This catches and auto-fixes inconsistencies in Elixir, JavaScript, and TypeScript before staging.