本文へ移動
cccskills
無料GitHub で公開

eslint

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.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md5.9 KB
  • manifest.json55 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

  1. Detect ownership first:
    • existing ESLint config
    • package manager and workspace layout
    • framework packages such as React, Next.js, Vue, or plain TypeScript
  2. Keep ESLint as the semantic lint owner for JS and TS files when the repo needs rich plugin ecosystems or framework-specific rules.
  3. Prefer checked-in local devDependencies over global installs so CI and local runs match.
  4. Add narrow scripts to package.json, for example:
    • lint: eslint .
    • lint:fix: eslint . --fix
  5. 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
  6. If the repo wants type-aware rules, verify the target files are covered by the intended tsconfig.json before enabling heavier rules.
  7. 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.

Bootstrap When Missing

  1. 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' .
  2. Prefer a repo-local install:
    • npm install --save-dev eslint
  3. Add framework-specific plugins only when the repo actually uses the framework.
  4. Create or refine eslint.config.js or eslint.config.mjs instead of leaving setup implicit.
  5. Add repeatable commands to AGENTS.md and package.json, then verify with:
    • npx eslint .
    • npx eslint . --fix
  6. Return status: configured if the repo now has a working lint gate, or status: improved if existing setup was tightened.
  7. 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

  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

  • status: complete | clean | improved | configured | not_applicable | blocked
  • plan: concise plan and current step
  • actions_taken: concrete changes made
  • 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."

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Route gh-aw workflow design/create/debug/upgrade requests to the right prompts.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Use a repo-root `.editorconfig` to configure free .NET analyzer and style rules. Use when a .NET repo needs rule severity, code-style options, section layout, or analyzer ownership made explicit. USE FOR: the repo needs a root .editorconfig; analyzer severity and style ownership are unclear; the team wants one source of truth for rule configuration. DO NOT USE FOR: choosing analyzers with no config change; formatting-only execution with no config ownership question. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I/O with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java/Kotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift/Objective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Design or review .NET solution architecture across modular monoliths, clean architecture, vertical slices, microservices, DDD, CQRS, and cloud-native boundaries without over-engineering. USE FOR: .NET architecture choices; layer and domain boundary review; service decomposition; clean architecture, vertical slice, DDD, CQRS, and modular monolith decisions. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

managedcode のスキルをすべて見る

このスキルの問題を報告する