Skip to content

docs: 14 rule pages put options under [rules."<id>"], which squirrel ignores #1176

Closed

Description

@nc9

14 rule docs show options under a [rules."<rule-id>"] table. squirrel reads rule options only from [rule_options."<rule-id>"] (packages/rules/src/runner.ts getRuleOptions reads config.rule_options[ruleId]), and the [rules] schema drops unknown keys without a warning. So a user who copies one of these examples changes nothing, and nothing tells them.

Pages (found with rg -n '^\[rules\."' docs):

  • docs/rules/index.mdx (two examples: core/meta-title, content/word-count)
  • docs/rules/core/meta-title.mdx, docs/rules/core/meta-description.mdx
  • docs/rules/perf/: js-file-size, css-file-size, unminified-css, unminified-js, asset-compression, cache-headers, bad-caching, ttfb, dom-size, total-byte-weight, animated-content

security/tls-certificate had the same bug and is fixed in #716.

Acceptance Criteria

  • rg -n '^\[rules\."' docs finds nothing; each example uses [rule_options."<rule-id>"]
  • Each fixed example, copied into a squirrel.toml, changes the rule's behaviour in a CLI audit (spot-check at least perf/ttfb and core/meta-title)
  • make validate in docs/ passes
  • Optional: the docs link or glossary check fails on a [rules."<id>"] options table, so the pattern cannot come back

Activity

  1. added
    bug
    documentation
    size: S
    rules
    on Oct 27, 2026
  2. WilliamK112 commented on Oct 27, 2026

    @WilliamK112
    Contributor

    I would like to take this. I will correct every affected options table, add a docs validation regression so the invalid table shape cannot return, spot-check the core/meta-title and perf/ttfb configurations through the CLI path, and run the full docs validation.

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

    bugdocumentationrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions