lint-js

Check JavaScript/TypeScript code quality with ESLint

23 stars

Best use case

lint-js is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Check JavaScript/TypeScript code quality with ESLint

Teams using lint-js should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/lint-js/SKILL.md --create-dirs "https://raw.githubusercontent.com/wangjianjq/Skill/main/.agents/skills/lint-js/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/lint-js/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How lint-js Compares

Feature / Agentlint-jsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Check JavaScript/TypeScript code quality with ESLint

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 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

| Tool | Min Version | Check Command | Installation |
|------|-------------|---------------|--------------|
| Node.js | 16+ | `node --version` | [nodejs.org](https://nodejs.org) |
| ESLint | 8.0+ | `eslint --version` | `npm install -g eslint` |

## 🚀 Usage

### Method 1: AI Assistant

```
"Use lint-js to check my JavaScript code"
```

### Method 2: Run Script Directly

```powershell
# Windows
.\.agents\skills\lint-js\scripts\lint.ps1

# Linux/Mac
./.agents/skills/lint-js/scripts/lint.sh
```

### Method 3: With Parameters

```powershell
# Auto-fix
.\.agents\skills\lint-js\scripts\lint.ps1 -Fix

# Specific file types
.\.agents\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

> **Safety Gate**: By default, this skill skips protected folders (`.agents/`, `bmad/`) and `README.md`.

## ⚙️ Configuration

```json
// .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

- [ESLint Documentation](https://eslint.org/)
- [TypeScript ESLint](https://typescript-eslint.io/)