Eslint is an AI agent skill from the GitHub repository managedcode/dotnet-skills. Use ESLint in .NET repositories that ship JavaScript, TypeScript, React, or other Node-based frontend assets. USE FOR: the repo has package.json, eslint.config.*, .eslintrc*, tsconfig.json, or JS/TS/React frontend files; the user asks for JavaScript or TypeScript linting, React rule. DO NOT USE FOR:
Claude Code: save it as .claude/skills/eslint/SKILL.md
Cursor: save it as .cursor/rules/eslint.md
Codex: save it as .agents/skills/eslint/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
ESLint for Frontend Assets in .NET Repositories
Trigger On
the repo has package.json, eslint.config.*, .eslintrc*, tsconfig.json, or JS/TS/React frontend files
the user asks for JavaScript or TypeScript linting, React rule enforcement, import hygiene, or unsafe frontend patterns
CI should fail on frontend lint findings instead of relying on editor-only feedback
Do Not Use For
CSS ownership by itself; route that to stylelint
HTML-only checks on static output; route that to htmlhint
repos that intentionally standardized on Biome as the only JS or TS formatter-linter, unless migration or comparison is explicitly requested
Inputs
the nearest AGENTS.md
package.json
eslint.config.* or .eslintrc*
tsconfig.json when TypeScript or type-aware rules are involved
Workflow
Detect ownership first:
existing ESLint config
package manager and workspace layout
framework packages such as React, Next.js, Vue, or plain TypeScript
Keep ESLint as the semantic lint owner for JS and TS files when the repo needs rich plugin ecosystems or framework-specific rules.
Prefer checked-in local devDependencies over global installs so CI and local runs match.
Add narrow scripts to package.json, for example:
lint: eslint .
lint:fix: eslint . --fix
Scope auto-fix runs before broad rewrites:
fix a bounded folder or glob first
rerun the linter
rerun the frontend build or tests if the repo has them
If the repo wants type-aware rules, verify the target files are covered by the intended tsconfig.json before enabling heavier rules.
Do not hide noise by mass-disabling rules. Fix code, narrow scope, or phase severity deliberately.
Current Upstream Notes
ESLint v10.9.1 includes the v10.8.1 autofix and false-positive corrections and fixes no-loss-of-precision so numeric literals with a trailing decimal point are not reported incorrectly. Re-run focused rule fixtures before retaining a suppression for that syntax.
Re-run the real lint suite and autofix snapshots before accepting churn, especially in semicolon-free code or generated output. Keep the v10.8.0 flat-config type exports and formatter changes in mind when updating tooling integrations.
Current docs clarify parser option precedence over languageOptions and document the v9/v10 migration codemods; review flat-config migrations that mix legacy parser settings with new config shapes.
Add framework-specific plugins only when the repo actually uses the framework.
Create or refine eslint.config.js or eslint.config.mjs instead of leaving setup implicit.
Add repeatable commands to AGENTS.md and package.json, then verify with:
npx eslint .
npx eslint . --fix
Return status: configured if the repo now has a working lint gate, or status: improved if existing setup was tightened.
Return status: not_applicable only when another documented tool already owns JS or TS linting and migration is not requested.
Handle Failures
Parsing errors on TS or JSX usually mean the config or parser stack does not match the file set; verify framework plugins and tsconfig.json coverage first.
Definition for rule ... was not found usually means a missing plugin package or a config targeting a different ESLint major version.
File ignored because of a matching ignore pattern usually means the glob is too broad or ignores were left stale after a folder move.
Huge warning floods should be handled in phases with bounded globs, not by downgrading everything to off.
Deliver
explicit ESLint ownership for JS or TS frontend assets
checked-in commands for lint and lint:fix
config decisions that match the repo's real frontend stack
Validate
ESLint is running from repo-local dependencies
rule ownership is not ambiguous versus Biome or other linters
the chosen globs match the real frontend folders
fixes were verified with the repo's normal frontend build or test pass when available
Ralph Loop
Plan: analyze current state, target outcome, constraints, and risks.
Execute one step and produce a concrete delta.
Review the result and capture findings.
Apply fixes in small batches and rerun checks.
Update the plan after each iteration.
Repeat until outcomes are acceptable.
If a dependency is missing, bootstrap it or return status: not_applicable with a reason.
verification: commands, checks, or review evidence
remaining: unresolved items or none
Example Requests
"Add ESLint to the React frontend in this ASP.NET Core repo."
"Make JS and TS lint failures block CI."
"Fix the current ESLint warnings without hiding them."
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.