lint-validation

Configure linting, formatting, and pre-commit hooks for PHP, JavaScript/TypeScript, and Python.

2|1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/sraloff/gravityboots --skill lint-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint-validation
Source: https://github.com/sraloff/gravityboots/tree/main/.agent/skills/lint-validation
Command: npx skills add https://github.com/sraloff/gravityboots --skill lint-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Codebases often suffer from inconsistent styling and brittle CI checks. This skill provides a unified set of linting, formatting, and pre-commit guidance to improve quality and reduce review time.

Core Features & Use Cases

  • PHP tooling: PHP_CodeSniffer (PSR-12) and Laravel Pint with pre-configured rules.
  • JavaScript/TypeScript tooling: ESLint and Prettier with strict configs and import sorting.
  • Python tooling: Ruff for fast, unified linting and import sorting.
  • Git hooks: Husky-based pre-commit hooks to run linting before commits.
  • CI guidance: Ready-made workflows to enforce standards during CI.

Quick Start

Run the project's lint script to validate code across PHP, JavaScript/TypeScript, and Python before committing.

Frequently Asked Questions about lint-validation

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

FAQPage Schema
How do I set up pre-commit hooks for PHP and JavaScript linting?

Pre-commit hooks for PHP and JavaScript linting are configured using Husky to run PHP_CodeSniffer, Laravel Pint, and ESLint checks before code is committed, preventing unstyled code from entering the repository.

What is the best way to standardize linting rules across multiple languages?

Standardizing linting across multiple languages involves applying unified tooling like PHP_CodeSniffer for PHP, ESLint with Prettier for JavaScript/TypeScript, and Ruff for Python to enforce consistent formatting rules.

Can I use Ruff and ESLint configurations in existing repositories?

Yes, Ruff and ESLint configurations can be applied to existing repositories to enforce consistent tooling during local development and CI, standardizing code quality without needing to start a new project.

Does this linting setup support Python import sorting and formatting?

Python import sorting and formatting are supported using Ruff, a fast linter that unifies linting and import organization for Python codebases within the standardized pre-commit and CI workflows.

How do I enforce PSR-12 formatting in a Laravel project?

PSR-12 formatting in a Laravel project is enforced using PHP_CodeSniffer and Laravel Pint with pre-configured rules, ensuring clean and consistent PHP code styling during local development and CI checks.

Why do I need pre-commit hooks for code quality enforcement?

Pre-commit hooks are needed for code quality enforcement to automatically run linting scripts before commits are finalized, catching formatting errors and standard violations early to reduce code review time.