Skip to content

Check chameleon templates for missing HTML attributes via pre-commit

License

Notifications You must be signed in to change notification settings

minddistrict/pre-commit-check-chameleon

Repository files navigation

pre-commit-check-chameleon

Purpose

Check for syntax and accessibility misuse in Chameleon templates.

Usage

In .pre-commit-config.yaml add:

- repo: https://github.com/minddistrict/pre-commit-check-chameleon
  rev: 1.0
  hooks:
  - id: check-chameleon

Options

a11y-lint-exclude

Exclude files in the given path from the accessibility checks, so they just get checked for correct XML syntax.

Example:

- repo: https://github.com/minddistrict/pre-commit-check-chameleon
  rev: 1.0
  hooks:
  - id: check-chameleon
    args: [--a11y-lint-exclude=src/module_a/module_b/templates]

About

Check chameleon templates for missing HTML attributes via pre-commit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages