Repository navigation
test: Require every upstream rule to be triaged - #81
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Active moderate and critical findings remain in triage/coverage.test.ts: the checks accept invalid status keys and incorrectly classify object-valued deprecated metadata, so the documented coverage behavior is not enforced.
2 open issues
What changed in this PR
Adds automated coverage tracking for current ESLint and plugin rules, ensuring each rule is configured or explicitly triaged. The check runs independently through npm run test:rules and a dedicated CI job.
Changes:
- Adds categorized rule decisions in
triage/rules.json. - Adds tests for missing, stale, deprecated, duplicate, unsorted, and conflicting entries.
- Documents the triage workflow and integrates it into TypeScript checking, npm scripts, and CI.
| File | Description |
|---|---|
| tsconfig.json | Includes the new triage sources in TypeScript checking. |
| triage/rules.json | Records decisions for currently unconfigured upstream rules. |
| triage/coverage.test.ts | Validates that current upstream rules are configured or consistently triaged. |
| package.json | Adds the standalone test:rules command. |
| CONTRIBUTING.md | Documents rule triage statuses and the new development workflow. |
| AGENTS.md | Adds the triage subsystem to the repository layout guidance. |
| .github/workflows/ci.yml | Runs rule coverage validation as a separate CI job. |
Review effort: Lite
slifty
force-pushed
the
80-rule-triage
branch
from
November 19, 2026 20:57
af54332 to
44aa2ae
Compare
New upstream rules otherwise arrive silently with a dependency bump. Listing every rule we don't configure makes each one a recorded decision, and the check runs on its own so it fails separately from the config tests. Issue #80 Detect new upstream rules and queue them for triage Claude-Session: 8bcf31ad-0e1b-471a-89a6-75a3d5110be5
Member
Author
|
We may find this was a bad idea, but, you know, when in rome. |
slifty
force-pushed
the
80-rule-triage
branch
from
November 19, 2026 21:05
44aa2ae to
7d74a4b
Compare
|
🎉 This PR is included in version 10.33.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR makes CI fail when ESLint or one of our plugins provides a rule that we haven't either configured or recorded a decision on. Every rule we don't configure is now listed in
triage/rules.jsonasnot-planned,laterorneeds-triage.The check runs as its own command,
npm run test:rules, and as its own CI job, so it fails separately from the config tests. This covers the first part of #80. The automatic Dependabot fix-up comes later.Testing
npm run lint,npm testandnpm run test:rulesall pass.Notes for agentic reviewers
pluginsin the publishedconfigs; core rules come frombuiltinRules, minus deprecated ones. A rule switchedoffin the config counts as configured.builtinRulescarries a type-only@deprecatedtag with no replacement. ESLint 10 no longer depends on@eslint/js, and@eslint/js'sconfigs.allhasn't been released since 10.0.1, so it would miss newer core rules. The oneeslint-disable-next-linehas that reason on it.not-plannedholds what Consider the rules love leaves out #30 explicitly skipped,laterholds the items still open in Support import rules #9, and everything else isneeds-triage.test:prefix releases nothing.🤖 Generated with Claude Code (session 8bcf31ad-0e1b-471a-89a6-75a3d5110be5)