New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

gatsby-plugin-axe-core-react

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-axe-core-react

A Gatsby plugin that checks @axe-core/react rules against Gatsby markup for accessibility testing

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
775
31.58%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-plugin-axe-core-react

A Gatsby plugin to add @axe-core/react accessibility testing to Gatsby markup.

Install

yarn add @axe-core/react axe-core gatsby-plugin-axe-core-react --dev 

How to use

// In your gatsby-config.js

plugins: [`gatsby-plugin-axe-core-react`]

or

// In your gatsby-config.js

plugins: [
  {
    resolve: 'gatsby-plugin-axe-core-react',
    options: {
        axeConfig,
        axeContext,
        debounce,
    },
  },
]

React-axe will now print a11y warnings to your browser's console. 🎉

Configuration options

You can use the following options if you wish to to override the default config.

axeConfig [object][optional]

The configuration object for axe-core.

axeContext [object][optional]

Used to specify which element should and which should not be tested.

debounce [number][optional][default: 1000]

The number of milliseconds to wait for component updates to cease before performing an analysis of all the changes.

Keywords

gatsby

FAQs

Package last updated on 27 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts