/lint-fix

Lint and auto-fix the current file using project ESLint config

skill public v1 <filename>
$ rn skill pull @shred/rockstar-ninja/lint-fix
SKILL.md 770 B
฿ count_errors.py 709 B
Select a file to view its contents

Documentation

Review the specified file for lint errors using the project's ESLint configuration. For each error found:

  1. Read the ESLint rule documentation to understand the intent
  2. Apply the minimal fix that satisfies the rule
  3. Verify the fix doesn't break surrounding code
  4. If a rule is controversial (e.g. prefer-const vs no-const), match the style used in adjacent code rather than the rule's default

Run eslint --fix first for auto-fixable issues. For remaining errors, apply manual fixes one at a time and re-run the linter after each change to confirm the error count decreases.

If the file has no lint errors, report that and exit without changes.