Dotnet eslint

From managedcode/PrompterOne · View interactive version

Dotnet eslint is an AI agent skill from the GitHub repository managedcode/PrompterOne. Use ESLint in .NET repositories that ship JavaScript, TypeScript, React, or other Node-based frontend assets. Use when a repo needs a configurable CLI lint gate for frontend correctness, import hygiene, unsafe patterns, or framework-specific rules.

How to use this skill

Skill file

ESLint for Frontend Assets in .NET Repositories

Trigger On

Do Not Use For

Inputs

Workflow

  1. Detect ownership first:
  1. Keep ESLint as the semantic lint owner for JS and TS files when the repo needs rich plugin ecosystems or framework-specific rules.
  2. Prefer checked-in local devDependencies over global installs so CI and local runs match.
  3. Add narrow scripts to package.json, for example:
  1. Scope auto-fix runs before broad rewrites:
  1. If the repo wants type-aware rules, verify the target files are covered by the intended tsconfig.json before enabling heavier rules.
  2. Do not hide noise by mass-disabling rules. Fix code, narrow scope, or phase severity deliberately.

Bootstrap When Missing

  1. Detect current state:
  1. Prefer a repo-local install:
  1. Add framework-specific plugins only when the repo actually uses the framework.
  2. Create or refine eslint.config.js or eslint.config.mjs instead of leaving setup implicit.
  3. Add repeatable commands to AGENTS.md and package.json, then verify with:
  1. Return status: configured if the repo now has a working lint gate, or status: improved if existing setup was tightened.
  2. Return status: not_applicable only when another documented tool already owns JS or TS linting and migration is not requested.

Handle Failures

Deliver

Validate

Ralph Loop

  1. Plan: analyze current state, target outcome, constraints, and risks.
  2. Execute one step and produce a concrete delta.
  3. Review the result and capture findings.
  4. Apply fixes in small batches and rerun checks.
  5. Update the plan after each iteration.
  6. Repeat until outcomes are acceptable.
  7. If a dependency is missing, bootstrap it or return status: not_applicable with a reason.

Required Result Format

Example Requests

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.