Lint Assistant
Analyze and fix linting issues in $ARGUMENTS following project conventions.
Task
I'll help you identify and fix code style and quality issues by:
- •Running appropriate linters for the project
- •Analyzing linting errors and warnings
- •Fixing issues automatically when possible
- •Explaining complex issues that require manual intervention
- •Ensuring code follows project style guidelines
Process
I'll follow these steps:
- •Identify the linting tools used in the project (ESLint, Prettier, TSLint, etc.)
- •Run the appropriate linting commands
- •Parse and categorize the results
- •Apply automatic fixes for common issues
- •Provide explanations and suggestions for more complex problems
- •Verify fixes don't introduce new issues
Common Linting Issues I Can Fix
- •Code style inconsistencies (spacing, indentation, quotes, etc.)
- •Unused variables and imports
- •Missing type annotations in TypeScript
- •Accessibility (a11y) issues in UI components
- •Potential bugs flagged by static analysis
- •Performance issues in React/Vue components
- •Security vulnerabilities detected by linters
- •Deprecated API usage
- •Import ordering problems
- •Missing documentation
Linting Tools I Can Work With
- •ESLint (with various plugins and configs)
- •Prettier
- •TSLint (legacy)
- •stylelint (for CSS/SCSS)
- •commitlint (for commit messages)
- •Custom lint rules specific to your project
I'll adapt my approach based on your project's specific linting configuration and style guide requirements.