Skip to content
Development
Command

/setup-linting

Setup code linting and quality tools

From plugin
claude-command-suite
1.3k199 skills89 agents199 commands
Install
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/setup-linting

Context preview

What this command does when you run it.

Setup code linting and quality tools

Command definition

setup-linting.md

Setup Linting Command

Setup code linting and quality tools

Instructions

Follow this systematic approach to setup linting: **$ARGUMENTS**

1. **Project Analysis**

  • Identify programming languages and frameworks
  • Check existing linting configuration
  • Review current code style and patterns
  • Assess team preferences and requirements

2. **Tool Selection by Language**

**JavaScript/TypeScript:**

   npm install -D eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin
   npm install -D prettier eslint-config-prettier eslint-plugin-prettier

**Python:**

   pip install flake8 black isort mypy pylint

**Java:**

   # Add to pom.xml or build.gradle
   # Checkstyle, SpotBugs, PMD

3. **Configuration Setup**

**ESLint (.eslintrc.json):**

   {
     "extends": [
       "eslint:recommended",
       "@typescript-eslint/recommended",
       "prettier"
     ],
     "parser": "@typescript-eslint/parser",
     "plugins": ["@typescript-eslint"],
     "rules": {
       "no-console": "warn",
       "no-unused-vars": "error",
       "@typescript-eslint/no-explicit-any": "warn"
     }
   }

4. **IDE Integration**

  • Configure VS Code settings
  • Setup auto-fix on save
  • Install relevant extensions

5. **CI/CD Integration**

   - name: Lint code
     run: npm run lint

6. **Package.json Scripts**

   {
     "scripts": {
       "lint": "eslint src --ext .ts,.tsx",
       "lint:fix": "eslint src --ext .ts,.tsx --fix",
       "format": "prettier --write src"
     }
   }

Remember to customize rules based on team preferences and gradually enforce stricter standards.

Read more
Ships withclaude-command-suite

A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.

Get the whole plugin