Skip to content

docs: every rule page's "Enable only this rule" example disables all rules #472

Closed

Description

@nc9

Found while documenting #465. 289 rule pages under docs/rules/ show this "Enable only this rule" example:

[rules]
enable = ["a11y/color-contrast"]
disable = ["*"]

Disable patterns are checked before enable patterns and any match disables. See isRuleEnabled in packages/rules/src/filter.ts and createRuleConfig in apps/cli/src/infra/context.ts. With disable = ["*"] every rule is disabled, including the one the example means to keep, so a reader who copies it gets an audit that runs nothing.

The working form is enable = ["a11y/color-contrast"] with no disable, or --rule-include a11y/color-contrast on the command line.

Acceptance Criteria

  • No page under docs/rules/ shows disable = ["*"] next to an enable list meant to run a single rule
  • The replacement example, run with squirrel audit <url> and that config, executes exactly the one rule (checked once against a local fixture)
  • bun x [email protected] check --strict passes in docs/

Activity

  1. added
    bug
    documentation
    P2
    size: S
    on Oct 5, 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

    P2bugdocumentationsize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions