- name: axe
  tags:
    formats: [$html-files]
  schema:
    anyOf:
      - boolean
      - object:
          properties:
            output:
              enum: [json, console, document]
              description: "If set, output axe-core results on console. `json`: produce structured output; `console`: print output to javascript console; `document`: produce a visual report of violations in the document itself."
            standard:
              enum:
                [
                  wcag2a,
                  wcag2aa,
                  wcag2aaa,
                  wcag21a,
                  wcag21aa,
                  wcag21aaa,
                  wcag22a,
                  wcag22aa,
                  wcag22aaa,
                ]
              description: "Only check the rules for this WCAG conformance level, named as version then level (e.g. `wcag21aa` for WCAG 2.1 AA). Each level includes the levels and versions it builds on, and may check rules axe-core disables by default (such as AAA color contrast). Axe's best-practice rules are excluded unless `best-practice: true` is also set."
            best-practice:
              boolean:
                description: "Whether to check axe-core's best-practice rules (checks recommended by axe that aren't required by any WCAG success criterion). Checked by default when `standard` is unset; excluded by default when `standard` is set."
  description: "When defined, run axe-core accessibility tests on the document."
