Skip to content

test: Require every upstream rule to be triaged - #81

Merged
slifty merged 1 commit into
mainfrom
80-rule-triage
Nov 19, 2026
Merged

slifty merged 1 commit into
mainfrom
80-rule-triage

Conversation

@slifty

@slifty slifty commented Nov 10, 2026

Copy link
Copy Markdown
Member

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.json as not-planned, later or needs-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 test and npm run test:rules all pass.
  • Broke the list on purpose (removed a rule, listed a rule that doesn't exist, a deprecated rule and a configured rule) and checked that each case fails.
Notes for agentic reviewers
  • Plugin rules are found from the plugins in the published configs; core rules come from builtinRules, minus deprecated ones. A rule switched off in the config counts as configured.
  • builtinRules carries a type-only @deprecated tag with no replacement. ESLint 10 no longer depends on @eslint/js, and @eslint/js's configs.all hasn't been released since 10.0.1, so it would miss newer core rules. The one eslint-disable-next-line has that reason on it.
  • The starting sort: not-planned holds what Consider the rules love leaves out #30 explicitly skipped, later holds the items still open in Support import rules #9, and everything else is needs-triage.
  • The test: prefix releases nothing.

🤖 Generated with Claude Code (session 8bcf31ad-0e1b-471a-89a6-75a3d5110be5)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread triage/coverage.test.ts Resolved
Comment thread triage/coverage.test.ts Resolved
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
@slifty

slifty commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

We may find this was a bad idea, but, you know, when in rome.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The supplied review evidence identifies no active issues with the rule-coverage and triage changes.

No open issues 🎉

2 resolved since last review

Review effort: Lite

@slifty
slifty merged commit 34e5f8e into main Nov 19, 2026
11 checks passed
@slifty
slifty deleted the 80-rule-triage branch November 19, 2026 21:43
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 10.33.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants