Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计通过

eslint-ruleseslint 规则

Agent Skill

eslint-rules 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,058

周安装

45

GitHub Stars

142

下载量

371
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:eslint-rules(eslint 规则)
来源仓库:https://github.com/thebushidocollective/han
仓库路径:skills/eslint-rules
安装命令:
npx skills add https://github.com/thebushidocollective/han --skill eslint-rules
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/thebushidocollective/han --skill eslint-rules

简介

eslint-rules 详解 ESLint 内置规则的用法与配置策略,适合掌握核心代码检查能力。

  • 适用于理解规则 severity 级别与禁用策略的实际应用场景。
  • 涵盖常见错误预防与代码风格强制的最佳实践。
  • 安装命令:npx skills add https://github.com/thebushidocollective/han --skill eslint-rules。
  • 使用前请确认项目是否已安装 ESLint 核心库,避免运行时缺失。

SKILL.md

eslint rules

Master ESLint built-in rules including rule configuration, severity levels, and disabling strategies. This skill provides comprehensive coverage of essential concepts, patterns, and best practices for professional ESLint development.

Overview

ESLint is a powerful tool for javascript development, providing robust capabilities for maintaining code quality and ensuring reliable software delivery. This skill covers the fundamental through advanced aspects of working with ESLint.

Installation and Setup

Basic Installation

Setting up ESLint requires proper installation and configuration in your development environment.

# Installation command specific to ESLint
# Follow official documentation for latest version

Project Configuration

Create appropriate configuration files and setup for your project structure:

  • Configuration file setup
  • Project structure organization
  • Team collaboration setup
  • CI/CD integration preparation

Core Concepts

Fundamental Principles

Understanding the core principles of ESLint is essential for effective usage:

  1. Architecture - How ESLint is structured and operates
  2. Configuration - Setting up and customizing behavior
  3. Integration - Working with other tools and frameworks
  4. Best Practices - Industry-standard approaches

Key Features

ESLint provides several key features that make it valuable:

  • Feature 1: Core functionality
  • Feature 2: Advanced capabilities
  • Feature 3: Integration options
  • Feature 4: Performance optimization
  • Feature 5: Extensibility

Configuration Strategy

Proper configuration ensures ESLint works optimally:

  • Environment-specific setup
  • Team standards enforcement
  • Performance tuning
  • Error handling configuration

Advanced Usage

For complex scenarios, ESLint offers advanced capabilities:

  • Custom extensions
  • Advanced patterns
  • Performance optimization
  • Scalability considerations

Code Examples

Example 1: Basic Setup

// Basic ESLint setup
// Demonstrates fundamental usage patterns
// Shows proper initialization and configuration

// Core setup code
function basicSetup() {
  // Initialize framework
  // Configure basic options
  // Return configured instance
}

// Usage example
const instance = basicSetup();

Example 2: Configuration

// Configuration example for ESLint
// Shows how to properly configure
// Includes common options and patterns

// Configuration object
const config = {
  option1: 'value1',
  option2: 'value2',
  advanced: {
    setting1: true,
    setting2: false
  }
};

// Apply configuration
function applyConfig(config) {
  // Validation logic
  // Application logic
  // Return result
}

Example 3: Advanced Pattern

// Advanced usage pattern
// Demonstrates sophisticated techniques
// Shows best practices in action

function advancedPattern() {
  // Setup phase
  // Execution phase
  // Cleanup phase
}

Example 4: Integration

// Integration with other tools
// Shows real-world usage
// Demonstrates interoperability

function integrationExample() {
  // Setup integration
  // Execute workflow
  // Handle results
}

Example 5: Error Handling

// Proper error handling approach
// Defensive programming patterns
// Graceful degradation

function withErrorHandling() {
  try {
    // Main logic
  } catch (error) {
    // Error recovery
  } finally {
    // Cleanup
  }
}

Example 6: Performance Optimization

// Performance-optimized implementation
// Shows efficiency techniques
// Demonstrates best practices

function optimizedApproach() {
  // Efficient implementation
  // Resource management
  // Performance monitoring
}

Example 7: Testing

// Testing approach for ESLint
// Unit test examples
// Integration test patterns

function testExample() {
  // Test setup
  // Execution
  // Assertions
  // Teardown
}

Example 8: Production Usage

// Production-ready implementation
// Includes monitoring and logging
// Error recovery and resilience

function productionExample() {
  // Production configuration
  // Monitoring setup
  // Error handling
  // Logging
}

Best Practices

  1. Follow conventions - Adhere to established naming and structural patterns for consistency
  2. Configure appropriately - Set up framework configuration that matches project requirements
  3. Validate inputs - Always validate and sanitize inputs before processing
  4. Handle errors gracefully - Implement comprehensive error handling and recovery
  5. Document decisions - Comment configuration choices and non-obvious implementations
  6. Test thoroughly - Write comprehensive tests for all functionality
  7. Optimize performance - Profile and optimize critical paths
  8. Maintain security - Follow security best practices and guidelines
  9. Keep updated - Regularly update framework and dependencies
  10. Monitor production - Implement logging and monitoring for production systems

Common Pitfalls

  1. Incorrect configuration - Misconfiguration leads to unexpected behavior and bugs
  2. Missing error handling - Not handling edge cases causes production issues
  3. Poor performance - Not optimizing leads to scalability problems
  4. Inadequate testing - Insufficient test coverage misses bugs
  5. Security vulnerabilities - Not following security best practices exposes risks
  6. Tight coupling - Poor architecture makes maintenance difficult
  7. Ignoring warnings - Dismissing framework warnings leads to future problems
  8. Outdated dependencies - Using old versions exposes security risks
  9. No monitoring - Lack of observability makes debugging difficult
  10. Inconsistent standards - Team inconsistency reduces code quality

Advanced Topics

Customization

ESLint allows extensive customization for specific needs:

  • Custom plugins and extensions
  • Behavior modification
  • Integration adapters
  • Domain-specific adaptations

Performance Tuning

Optimize ESLint performance for production:

  • Profiling and benchmarking
  • Resource optimization
  • Caching strategies
  • Parallel execution

CI/CD Integration

Integrate ESLint into continuous integration pipelines:

  • Automated execution
  • Result reporting
  • Quality gates
  • Deployment integration

Troubleshooting

Common issues and their solutions:

  • Configuration errors
  • Integration problems
  • Performance issues
  • Unexpected behavior

When to Use This Skill

  • Setting up ESLint in new projects
  • Configuring ESLint for specific requirements
  • Migrating to ESLint from alternatives
  • Optimizing ESLint performance
  • Implementing advanced patterns
  • Troubleshooting ESLint issues
  • Integrating ESLint with CI/CD
  • Training team members on ESLint
  • Establishing team standards
  • Maintaining existing ESLint implementations

Additional Resources

Documentation

  • Official ESLint documentation
  • Community guides and tutorials
  • API reference materials
  • Migration guides

Tools and Utilities

  • Development tools
  • Testing utilities
  • Monitoring solutions
  • Helper libraries

Community

  • Online forums and communities
  • Open source contributions
  • Best practice repositories
  • Example implementations

Conclusion

Mastering ESLint requires understanding both fundamentals and advanced concepts. This skill provides the foundation for professional-grade usage, from initial setup through production deployment. Apply these principles consistently for best results.

Detailed Configuration Examples

Configuration Option 1

Comprehensive configuration example demonstrating best practices and common patterns used in production environments.

# Detailed configuration setup
# Includes all necessary options
# Optimized for production use

Configuration Option 2

Alternative configuration approach for different use cases, showing flexibility and adaptability of the framework.

# Alternative configuration
# Different optimization strategy
# Suitable for specific scenarios

Configuration Option 3

Advanced configuration for complex environments with multiple requirements and constraints.

# Advanced configuration
# Handles complex scenarios
# Production-ready setup

Advanced Usage Patterns

Pattern 1: Modular Organization

Organize your setup in a modular way to improve maintainability and scalability across large projects.

Implementation details:

  • Separate concerns appropriately
  • Use composition over inheritance
  • Follow single responsibility principle
  • Maintain clear interfaces

Pattern 2: Performance Optimization

Optimize for performance in production environments with proven strategies and techniques.

Key considerations:

  • Profile before optimizing
  • Focus on bottlenecks
  • Cache appropriately
  • Monitor in production

Pattern 3: Error Recovery

Implement robust error recovery mechanisms to handle failures gracefully.

Recovery strategies:

  • Graceful degradation
  • Retry with backoff
  • Circuit breaker pattern
  • Comprehensive logging

Pattern 4: Testing Strategy

Comprehensive testing approach ensuring code quality and reliability.

Testing layers:

  • Unit tests for components
  • Integration tests for workflows
  • End-to-end tests for user scenarios
  • Performance tests for scalability

Integration Strategies

Integration with CI/CD

Seamless integration into continuous integration and deployment pipelines.

Steps:

  1. Configure pipeline
  2. Set up automation
  3. Define quality gates
  4. Monitor execution

Integration with Development Tools

Connect with popular development tools and IDEs for improved workflow.

Tools:

  • IDE plugins and extensions
  • CLI tools and utilities
  • Build system integration
  • Version control hooks

Integration with Monitoring

Implement monitoring and observability for production systems.

Monitoring aspects:

  • Performance metrics
  • Error tracking
  • Usage analytics
  • Health checks

Team Practices

Establishing Standards

Create and maintain consistent standards across the team.

Standards to define:

  • Naming conventions
  • Code organization
  • Documentation requirements
  • Review processes

Onboarding Process

Streamline onboarding for new team members.

Onboarding steps:

  • Initial setup guide
  • Training materials
  • Practice exercises
  • Mentorship program

Code Review Guidelines

Effective code review practices for quality assurance.

Review checklist:

  • Correctness
  • Performance
  • Security
  • Maintainability

Troubleshooting Guide

Common Issue 1

Detailed troubleshooting steps for frequently encountered problem.

Resolution steps:

  1. Identify symptoms
  2. Check configuration
  3. Verify dependencies
  4. Test solution

Common Issue 2

Another common issue with comprehensive resolution approach.

Diagnostic steps:

  1. Reproduce issue
  2. Gather logs
  3. Analyze data
  4. Apply fix

Common Issue 3

Third common scenario with clear resolution path.

Investigation process:

  1. Understand context
  2. Review recent changes
  3. Test hypotheses
  4. Implement solution

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

31.38%
按下载量换算116

Antigravity

23.9%
按下载量换算89

OpenCode

18.19%
按下载量换算67

Gemini CLI

11.47%
按下载量换算43

Claude Code

7.24%
按下载量换算27

windsurf

3.6%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills