Skip to content

docs: configuration examples set rule_options under ids that match no rule (performance/*) #478

Closed

Description

@nc9

Found while fixing #472. docs/configuration/examples.mdx configures rule options under ids that match no rule, so a user copying them changes nothing:

  • [rule_options."performance/ttfb"] with warn_threshold / error_threshold: the rule is perf/ttfb, and its options are good_threshold / poor_threshold (packages/rules/src/performance/ttfb.ts).
  • [rule_options."performance/dom-size"] and [rule_options."performance/cls-hints"]: the category code is perf, and there is no performance alias in packages/utils/src/rule-pattern.ts.

docs/quickstart.mdx also shows --rule-include ax,performance; check whether performance is an accepted category token for that flag.

Acceptance Criteria

  • Every rule id in docs/configuration/examples.mdx ([rules] lists and [rule_options."..."] tables) names a rule or category that exists
  • Every option key in those tables exists in that rule's optionsSchema
  • The --rule-include example in docs/quickstart.mdx runs without an unknown-category error
  • bun x [email protected] check --strict passes

Activity

  1. added
    bug
    documentation
    P3
    size: XS
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3bugdocumentationsize: XS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions