Setup code linting and quality tools
Installs and configures linting tools, IDE integration, and CI/CD workflows for code quality.
/plugin marketplace add davepoon/buildwithclaude/plugin install commands-project-setup@buildwithclaude1. **Project Analysis**Setup code linting and quality tools
Follow this systematic approach to setup linting: $ARGUMENTS
Project Analysis
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
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"
}
}
IDE Integration
CI/CD Integration
- name: Lint code
run: npm run lint
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.