Automates JavaScript and TypeScript code quality checks and auto-fixes using ESLint.

Install

mkdir -p .claude/skills/lint-js && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14852" && unzip -o skill.zip -d .claude/skills/lint-js && rm skill.zip

Installs to .claude/skills/lint-js

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Check JavaScript/TypeScript code quality with ESLint
52 chars · catalog descriptionno explicit “when” trigger
Beginner

Key capabilities

  • Detect potential bugs in JavaScript/TypeScript code
  • Enforce unified code style
  • Automatically fix common code issues
  • Check for unused and undefined variables
  • Verify TypeScript interface standards
  • Detect duplicate code

How it works

The skill uses ESLint to analyze JavaScript and TypeScript files against configured rules, identifying code quality issues and style violations, and can apply automatic fixes.

Inputs & outputs

You give it
JavaScript or TypeScript code files
You get back
Linting errors, warnings, or auto-fixed code

When to use lint-js

  • Fix linting errors in JS/TS files
  • Enforce strict coding standards
  • Check for unused variables and undefined identifiers
  • Verify TypeScript interface standards

About this skill

JavaScript/TypeScript Lint Skill

📋 Overview

Use ESLint to check JavaScript and TypeScript code quality:

  • 🔍 Error detection: Find potential bugs and issues
  • 📏 Style check: Unified code style
  • 🔧 Auto-fix: One-click fix for common issues
  • 🎯 Configurable: Supports multiple rule sets

🔧 Prerequisites

ToolMin VersionCheck CommandInstallation
Node.js16+node --versionnodejs.org
ESLint8.0+eslint --versionnpm install -g eslint

🚀 Usage

Method 1: AI Assistant

"Use lint-js to check my JavaScript code"

Method 2: Run Script Directly

# Windows
.\.agent\skills\lint-js\scripts\lint.ps1

# Linux/Mac
./.agent/skills/lint-js/scripts/lint.sh

Method 3: With Parameters

# Auto-fix
.\.agent\skills\lint-js\scripts\lint.ps1 -Fix

# Specific file types
.\.agent\skills\lint-js\scripts\lint.ps1 -Extensions "ts,tsx"

🎯 What It Checks

Code Quality

  • ✅ Unused variables
  • ✅ Undefined variables
  • ✅ Duplicate code detection
  • ✅ Complexity check

Best Practices

  • ✅ Strict mode
  • ✅ Arrow function usage
  • ✅ Promise handling
  • ✅ async/await standards

TypeScript Specific

  • ✅ Type safety check
  • ✅ Interface standards
  • ✅ Naming conventions
  • ✅ Import sorting

⚙️ Configuration

// .eslintrc.json
{
  "env": {
    "browser": true,
    "es2021": true,
    "node": true
  },
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended"
  ],
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaVersion": "latest",
    "sourceType": "module"
  },
  "rules": {
    "no-unused-vars": "warn",
    "no-console": "off",
    "quotes": ["error", "single"],
    "semi": ["error", "always"]
  }
}

🔗 Related Resources

When not to use it

  • When the code is not JavaScript or TypeScript
  • When ESLint is not the desired linter

Prerequisites

Node.js version 16+ESLint version 8.0+

Limitations

  • Requires Node.js and ESLint to be installed
  • Configuration depends on `.eslintrc.json` file
  • Limited to JavaScript and TypeScript languages

How it compares

This skill automates code quality checks and style enforcement for JavaScript/TypeScript using ESLint, providing consistent feedback and auto-fixing capabilities without manual review.

Compared to similar skills

lint-js side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
lint-js (this skill)06moReviewBeginner
dependency-upgrade265moReviewIntermediate
windsurf-linting-config12moReviewIntermediate
playwright-interactive04moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry