eslint
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "eslint" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2a6ce41e9be3c5edb95646385fd347a9bbac6ab0621d4cd21020002f699ecbc8. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/eslint-rule-conflict-detector-2 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Analyze .eslintrc configurations and extended rule sets using the ESLint Node.js API and eslint-config-inspector; detect conflicting rules between Prettier, TypeScript-ESLint, and the Airbnb preset, and produce a consolidated conflict-free configuration.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- the nearest `AGENTS.md` `package.json` `eslint.config.*` or `.eslintrc*` `tsconfig.json` when TypeScript or type-aware rules are involved
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: eslint
description: "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."
compatibility: "Requires a .NET repository with Node-based frontend assets such as `package.json`, `ClientApp/`, `src/`, or separate web frontend folders."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.9.1includes thev10.8.1autofix and false-positive corrections and fixesno-loss-of-precisionso 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.0flat-config type exports and formatter changes in mind when updating tooling integrations. - Current docs clarify parser option precedence over
languageOptionsand document the v9/v10 migration codemods; review flat-config migrations that mix legacy 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."
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对 .NET 仓库中前端资产的 ESLint 配置与冲突检测,解决实际工程痛点
- 明确区分与 stylelint、htmlhint、Biome 等工具的边界,避免功能重叠
Highlights
- Trigger On 和 Do Not Use For 描述清晰,覆盖关键文件和用户请求场景
- 能有效识别适用场景并排除不相关请求
Highlights
- Phase 划分清晰,包含 Detect、Bootstrap、Handle Failures、Deliver、Validate 等完整流程
- 提供端到端示例请求,frontmatter 完整,文档结构良好
Highlights
- 工具来源明确(npm install eslint),参数正确(eslint . --fix)
- 覆盖主要异常情况(解析错误、规则未找到、忽略模式问题),有验证步骤
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 58, 62, 63
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.