Eslint Rules
Enforce consistent JavaScript code style and identify potential errors using customizable ESLint rulesets.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add eslint-rules npx -- -y @trustedskills/eslint-rules
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"eslint-rules": {
"command": "npx",
"args": [
"-y",
"@trustedskills/eslint-rules"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to discover, install, and manage specific ESLint rules within codebases. It streamlines the enforcement of custom linting standards by allowing dynamic rule configuration without manual file editing.
When to use it
- You need to enforce a team-specific coding style that differs from default ESLint presets.
- An AI agent is tasked with auditing or refactoring legacy JavaScript/TypeScript codebases.
- You want to rapidly prototype new linting rules during the development phase.
- Your CI/CD pipeline requires dynamic updates to linting configurations without redeployments.
Key capabilities
- Discovery of available ESLint rule definitions and packages.
- Installation of specific rules into an agent's working environment.
- Configuration management for custom linting behavior.
- Integration with thebushidocollective/han ecosystem.
Example prompts
- "Install the
no-unused-varsrule from the eslint-rules package to clean up my codebase." - "Configure ESLint to enforce strict type checking using rules available in this skill."
- "Add a custom rule to prevent console.log statements in production-ready code."
Tips & gotchas
Ensure your project has eslint and @typescript-eslint/parser installed as prerequisites before applying these rules. Some rules may require specific ESLint version compatibility, so verify the agent's environment matches the skill requirements.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.