lint-and-validate

Lint and validate Node.js and Python code with ESLint, Ruff, and type checkers.

1|Updated Dec 21, 2024
One-click install
npx skills add https://github.com/SergeiGolos/wod-wiki --skill lint-and-validate-sergeigolos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint-and-validate
Source: https://github.com/SergeiGolos/wod-wiki/tree/main/.agent/skills/lint-and-validate
Command: npx skills add https://github.com/SergeiGolos/wod-wiki --skill lint-and-validate-sergeigolos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the crucial process of code quality control, ensuring that all modifications adhere to project standards and are free from syntax errors and type mismatches.

Core Features & Use Cases

  • Automated Linting & Formatting: Runs linters like ESLint and Ruff to enforce code style and catch errors.
  • Static Type Checking: Utilizes TypeScript compiler (tsc) and MyPy to verify type correctness.
  • Security Auditing: Performs security vulnerability checks using npm audit and bandit.
  • Use Case: After making changes to the codebase, run this Skill to automatically verify that your code is clean, correctly typed, and secure before committing.

Quick Start

Run the unified lint check for the project path.

Frequently Asked Questions about lint-and-validate

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

FAQPage Schema
How do I automate linting and static analysis for Node.js and Python code?

Static type checking ensures type correctness by validating code with the TypeScript compiler and MyPy. This automated process catches type mismatches and verifies adherence to project standards across Node.js and Python ecosystems.

Can I run a security audit on my codebase alongside standard linting?

Yes, security auditing checks for vulnerabilities using npm audit and bandit. This runs alongside standard linting and static analysis to validate that your code modifications are clean, correctly typed, and secure before committing.

Does this linting process support both Python and TypeScript environments?

Yes, the linting process supports both Python and TypeScript environments. It performs static analysis and syntax validation using tools like Ruff, MyPy, and the TypeScript compiler to ensure cross-ecosystem code quality.

What is the best way to enforce code quality standards before committing changes?

The best way to enforce code quality standards is running an automated validation check on your code modifications. This performs static analysis, type checking, and security auditing to ensure syntax correctness and project standard adherence before committing.

Why do I need static type checking for my code modifications?

You need static type checking to verify type correctness and catch type mismatches in your code. By utilizing the TypeScript compiler and MyPy, it ensures modifications are free from type errors before integration.