Command Palette

Search for a command to run...

Назад к скиллам
скилл № 16366

hoc-eslint-config

Conventions and procedure for `eslint.config.js` and the shared config package it spreads. Use when raising that package, changing a rule or its options…

БесплатноБез исполняемых скриптов
openreachtechот openreachtech★ 17 звёзд на GitHub

Установить hoc-eslint-config в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ESLint Config

Conventions for the local eslint.config.js, for the shared config package it spreads, and for the run that follows bumping that package.

Scope is settled by the package name. A package whose name carries eslint is this skill's — the shared config, the rule-set packages under it, the plugins. Everything else is the npm conventions'. Which of the shared config's rules apply inside a particular subject is that subject's own convention.

Choosing the version

Asked for Take
A version That version
Nothing The newest version the release-age cooldown admits
A version whose major differs from what is installed Nothing yet. Interview first

A cooldown makes the newest published version and the newest installable version two different things. Where a repository holds a minimum release age, latest means the newest the cooldown admits, and reading the dist-tag alone will name a version the install then declines. Compare the candidate's publish date against the cooldown before committing to it, and do the same for every package in the chain — a dependency of the config can be the one that is too young.

Wanting a version the cooldown excludes is a real case, and its handling — an exclusion at install time rather than an edit to the setting — belongs to /hoc-npm-vulnerability.

A major bump is not run autonomously. What it demands of the local config is not knowable from the version number, and the interview in upgrading.md is what establishes it. Present the findings and stop.

What may be committed without a decision

Four kinds, and they share one property: a measurement settles whether the change is right. Nothing here needs a name chosen, a behaviour weighed, or a shape judged.

Kind What settles it
A violation the linter's own fixer resolves The fixer, checked — see below
A local block the upgraded shared config now carries itself Removing it and finding the report still empty
A standing relaxation that now reports nothing Removing it and finding the report still empty
A violation-count comment beside a relaxation that has gone stale It follows from the row above

The fixer's output is read before it is committed

Applying the fixer is the machine's; trusting it blindly is not. Fixers do occasionally misbehave — reflowing lines they were not asked to touch, or two of them undoing each other's work across passes.

So capture the report before applying the fixer, then check that every hunk it produced sits at a location the report named. A hunk anywhere else is backed out and reported rather than explained. Apply only what the fixer applies; never take a rule's suggestions, which are offered precisely because they are not safe to apply unattended.

That check is itself a comparison of two lists, so it adds no judgment.

What stops for a decision

Kind What the decision is
A denied identifier The replacement name, or which words to exempt — both are choices
A value the ruleset denies Whether the module treats it as a value or was merely being loose
A rewrite that changes behaviour Whether every caller survives the new semantics
A rule about a class's or a member's shape Whether the shape is right and the rule mis-reads it
Anything reaching a published surface What consumers rely on, which the tests do not fully hold

Report these grouped by rule, with the count and the number of files for each, and say for each group whether a code change or a relaxation is indicated. A group of one file with eight violations and a group of six files with seven are different pieces of work, and the spread is what tells them apart.

A message names the construct an entry was written for, not the span it matched

Where a rule is a list of entries, each carrying its own message, that message is display text for the case the entry was added for. It is not a description of what the entry matches, and a single entry routinely matches more of a statement than its wording names.

So the reported location is what says what tripped the rule, and it is read before the message is believed. Measured on one such entry: a message naming a construct in the head of a statement was reported against a line inside that statement's body, and the fix was to lift the offending work out into a member of its own rather than to touch the head the message named. A run that had trusted the wording would have concluded the rule was wrong about the code.

This is the reader's half of the rule that a subtraction predicate matches on an entry's selector rather than on its message. The message moves without the entry moving,

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/rule-option-subtraction.md
  • references/upgrading.md

FAQ

Что делает скилл hoc-eslint-config?

Conventions and procedure for `eslint.config.js` and the shared config package it spreads. Use when raising that package, changing a rule or its options, reading what a rule reported, reaching for a disabling comment, or weighing a relaxation against the code change that would clear the rule. Scope is settled by the package name carrying `eslint`. Dependencies in general belong to the npm conventions.

Как установить скилл hoc-eslint-config?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hoc-eslint-config запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hoc-eslint-config с