lint-validation
Installation
SKILL.md
Lint & Validation
When to use this skill
- Setting up a new project's CI/CD or git hooks.
- Configuring ESLint, Prettier, PHP CodeSniffer, or Ruff.
- Fixing lint errors.
1. PHP
- Tools:
PHP_CodeSniffer(PSR-12) orLaravel Pint. - Command:
composer lint(custom script) or./vendor/bin/pint. - Static Analysis:
PHPStan(Level 5+) is recommended for logic errors.
2. JavaScript / TypeScript
- Tools:
ESLint+Prettier. - Config: Use strict configs (
eslint:recommended,plugin:@typescript-eslint/recommended). - Imports: Enforce sorted imports via
eslint-plugin-simple-import-sort.