Skip to content

Latest commit

 

History

History

acot-preset-axe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@acot/acot-preset-axe

An axe rule set for acot.

Installation

Install via npm:

$ npm install --save-dev @acot/acot-preset-axe

Usage

Add @acot/axe to the presets field of the acot config file. then configure the rules you want to use under the rules section.

{
  "presets": ["@acot/axe"],
  "rules": {
    "@acot/axe/wcag2a": "error"
  }
}

You can also enable all the recommended rules for our preset. Add preset:@acot/axe/recommended in extends:

{
  "extends": ["preset:@acot/axe/recommended"]
}

Supported Rules

Name Summary ✔️
@acot/axe/best-practice Run the rules specified in the "best-practice" tag of Axe. ✔️
@acot/axe/experimental Run the rules specified in the "experimental" tag of Axe. ✔️
@acot/axe/wcag21a Run the rules specified in the "wcag21a" tag of Axe. ✔️
@acot/axe/wcag21aa Run the rules specified in the "wcag21aa" tag of Axe. ✔️
@acot/axe/wcag2a Run the rules specified in the "wcag2a" tag of Axe. ✔️
@acot/axe/wcag2aa Run the rules specified in the "wcag2aa" tag of Axe. ✔️
@acot/axe/wcag2aaa Run the rules specified in the "wcag2aaa" tag of Axe. ✔️