agentleFS
agentsdanceagentsdance/agentskills/skills/linter-fixer/SKILL.md

linter-fixer

Skill3 starsChanged 11 months agoApache-2.0View on GitHub

Fix linting errors and enforce code style. Use when the user has ESLint, Prettier, or other linter errors and needs help resolving them.

The file

Files
SKILL.md

Linter Fixer

Resolve linting errors and maintain consistent code style.

Common Linters

LanguageLinterFormatter
JavaScript/TSESLintPrettier
Pythonflake8, pylintBlack
Gogolintgofmt
Rustclippyrustfmt
RubyRuboCop-

ESLint Common Fixes

no-unused-vars

// Error: 'x' is defined but never used
const x = 5;

// Fix: Remove or use the variable
const x = 5;
console.log(x);

// Or prefix with underscore if intentionally unused
const _x = 5;

prefer-const

// Error: 'x' is never reassigned, use 'const'
let x = 5;
return x;

// Fix:
const x = 5;
return x;

no-console

// Error: Unexpected console statement
console.log('debug');

// Fix: Use logger or remove
logger.debug('debug');

Auto-fix Commands

# ESLint
npx eslint . --fix

# Prettier
npx prettier --write .

# Python Black
black .

# Go
gofmt -w .

# Rust
cargo fmt

Configuration

.eslintrc.js

module.exports = {
  extends: ['eslint:recommended'],
  rules: {
    'no-unused-vars': 'warn',
    'no-console': 'off',
  },
};

.prettierrc

{
  "semi": true,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "es5"
}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.