lint-js
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.zipInstalls 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 ESLintKey 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
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
| Tool | Min Version | Check Command | Installation |
|---|---|---|---|
| Node.js | 16+ | node --version | 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
# 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| lint-js (this skill) | 0 | 6mo | Review | Beginner |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| windsurf-linting-config | 1 | 2mo | Review | Intermediate |
| playwright-interactive | 0 | 4mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
windsurf-linting-config
jeremylongshore
Configure and enforce code quality with AI-assisted linting. Activate when users mention "configure linting", "eslint setup", "code quality rules", "linting configuration", or "code standards". Handles linting tool configuration. Use when configuring systems or services. Trigger with phrases like "windsurf linting config", "windsurf config", "windsurf".
playwright-interactive
ComeOnOliver
Use a persistent `js_repl` Playwright session to debug local web or Electron apps, keep the same handles alive across iterations, and run functional plus visual QA without restarting the whole toolchain unless the process ownership changed.
dependency-upgrade
pinkpixel-dev
Master major dependency version upgrades, compatibility analysis, staged upgrade strategies, and comprehensive testing approaches.
node
dannybrown37
Invoke when the user is writing or debugging TypeScript or JavaScript code, working with Node.js tooling, or asking about ESLint/Prettier configuration.
genius-debugger
sak77-redacted
>-