Skip to content

Latest commit

 

History

History
101 lines (67 loc) · 3 KB

README.md

File metadata and controls

101 lines (67 loc) · 3 KB

Pa11y Lint Config

Linter configurations for Pa11y projects. We use these configurations to ensure Pa11y's coding style remains consistent across our repositories.

Latest version published to npm Node.js version support ESLint version target Build status LGPL-3.0 licensed

Table Of Contents

Requirements

This library requires Node.js 18 or above.

Usage

To include these config files in your project, install this module as a development dependency. Using npm:

npm install --save-dev pa11y-lint-config

The logging will mention any further peer dependencies required.

Now create the files .eslintrc.js and .eslintignore in your project root. The following command will create both files and populate them with sensible settings for a new Pa11y project:

printf "coverage\n" > .eslintignore
printf "'use strict';\n\nmodule.exports = require('pa11y-lint-config');\n" > .eslintrc.js

Contributing

There are many ways to contribute to Pa11y Lint Config, we cover these in the contributing guide for this repo.

If you're ready to contribute some code, clone this repo locally and commit your code on a new branch.

Please check that everything works by running the following before opening a PR:

npm test

Testing the GitHub Actions workflows

This project's GitHub Actions workflows can be tested locally using nektos/act, which can be installed with Homebrew:

brew install act

To run the testing workflow locally:

act

To validate the testing workflow, without running it:

act --dryrun

To validate the publishing workflow:

act --dryrun release

Add --verbose to any act command for more output.

Support

When we release a new major version we will continue to support the previous major version for 6 months. This support will be limited to fixes for critical bugs and security issues.

Licence

Licensed under the Lesser General Public License (LGPL-3.0).
Copyright © 2023, Team Pa11y