webhint-hint-chisel
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Chisel (chisel)

Use Chisel to assess the accessibility of a web site or web application.

In order to install this hint you need to be a Microsoft employee and have access to the chisel registry, otherwise you'll have errors during the installation.

Can the hint be configured?

Yes, you can configure this hint in your webhint configuration file as follows:

    "hints": {
        "chisel": ["warning", { "testsToRun": "color-contrast"}]
    }

The available parameters include:

  • testsToRun?: string[] - (Optional) Used to set the hints that will be run in chisel test run.

  • dom?: NodeSelector & Node | NodeList - (Optional) Used to set the elements that will be tested; defaults to document if dom, selector, and include/exclude are not set.

  • selector?: string - (Optional) Uses selector to get the elements that will be tested; ignored if dom is set.

  • include?: string[] - (Optional) Uses an array of selectors to get the elements that will be tested and can be used with exclude; ignored if dom or selector are set.

  • exclude?: string[] - (Optional) Uses an array of selectors to get the elements that will not be tested and can be used with include; ignored if dom or selector are set.

  • enableBestPracticeHints?: boolean - (Optional, default is false) Enables hint that are not mapped to MAS/considered best practice; default is false and ignored if testsToRun is set.

Package Sidebar

Install

npm i webhint-hint-chisel

Homepage

webhint.io

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

14.5 kB

Total Files

10

Last publish

Collaborators

  • alrra