Automates ESLint configuration and execution for frontend assets embedded in .NET projects.
Install
mkdir -p .claude/skills/eslint && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18902" && unzip -o skill.zip -d .claude/skills/eslint && rm skill.zipInstalls to .claude/skills/eslint
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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: CSS ownership by itself; route that to stylelint; HTML-only checks on static output; route that to htmlhint. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.Key capabilities
- →Detect existing ESLint configuration
- →Apply appropriate linting rules for JS/TS/React
- →Prefer checked-in local devDependencies over global installs
- →Add narrow linting scripts to package.json
- →Scope auto-fix runs to bounded folders or globs
- →Bootstrap ESLint when missing from a repository
How it works
The skill detects existing ESLint configurations and framework usage, then applies relevant linting rules, adds scripts to package.json, and can bootstrap ESLint if missing. It prioritizes local devDependencies and scoped auto-fixes.
Inputs & outputs
When to use eslint
- →Linting React code in .NET
- →Setting up ESLint for TypeScript
- →Enforcing frontend standards in .NET
About this skill
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.jsoneslint.config.*or.eslintrc*tsconfig.jsonwhen 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.jsonbefore enabling heavier rules. - Do not hide noise by mass-disabling rules. Fix code, narrow scope, or phase severity deliberately.
Current Upstream Notes
- ESLint
v10.5.0improves rule location reporting for complexity-style rules such asmax-depth,max-lines-per-function,max-nested-callbacks, andmax-statements, and reportsno-withat thewithkeyword. - Rebaseline snapshot tests or lint-output parsers after upgrading because diagnostics may point at more precise locations.
- Current docs clarify parser option precedence over
languageOptions; review flat-config migrations that mix prior parser settings with new config shapes.
Bootstrap When Missing
- Detect current state:
rg --files -g 'package.json' -g 'eslint.config.*' -g '.eslintrc*' -g 'tsconfig.json'rg -n '"eslint"|"@typescript-eslint"|"eslint-plugin-" --glob 'package.json' .
- Prefer a repo-local install:
npm install --save-dev eslint
- Add framework-specific plugins only when the repo actually uses the framework.
- Create or refine
eslint.config.jsoreslint.config.mjsinstead of leaving setup implicit. - Add repeatable commands to
AGENTS.mdandpackage.json, then verify with:npx eslint .npx eslint . --fix
- Return
status: configuredif the repo now has a working lint gate, orstatus: improvedif existing setup was tightened. - Return
status: not_applicableonly 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.jsoncoverage first. Definition for rule ... was not foundusually means a missing plugin package or a config targeting a different ESLint major version.File ignored because of a matching ignore patternusually 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
lintandlint: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_applicablewith a reason.
Required Result Format
status:complete|clean|improved|configured|not_applicable|blockedplan: concise plan and current stepactions_taken: concrete changes madeverification: commands, checks, or review evidenceremaining: unresolved items ornone
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."
When not to use it
- →When the task is solely for CSS ownership (route to stylelint)
- →When the task is for HTML-only checks on static output (route to htmlhint)
- →When the repository intentionally standardized on Biome as the only JS or TS formatter-linter
Prerequisites
Limitations
- →Does not hide noise by mass-disabling rules; requires fixing code, narrowing scope, or phasing severity
- →Parsing errors on TS or JSX usually mean config/parser stack mismatch
- →Definition for rule ... was not found usually means missing plugin or wrong ESLint major version
How it compares
This workflow specifically targets ESLint integration within .NET repositories with Node-based frontend assets, providing tailored configuration and validation steps that a generic ESLint setup might miss.
Compared to similar skills
eslint side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| eslint (this skill) | 0 | 18d | No flags | Intermediate |
| accessibility-compliance | 45 | 2mo | No flags | Intermediate |
| feature-flags | 6 | 6mo | Review | Intermediate |
| react-useeffect | 7 | 6mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by managedcode
View all by managedcode →You might also like
accessibility-compliance
wshobson
Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.
feature-flags
Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
react-useeffect
jarrodwatts
React useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. Teaches when NOT to use Effect and better alternatives.
react-ui-patterns
ChrisWiles
Modern React UI patterns for loading states, error handling, and data fetching. Use when building UI components, handling async data, or managing UI states.
vue-pinia-best-practices
vuejs-ai
Pinia stores, state management patterns, store setup, and reactivity with stores.
writing-react-effects
dust-tt
Writes React components without unnecessary useEffect. Use when creating/reviewing React components, refactoring effects, or when code uses useEffect to transform data or handle events.