Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
pa11y-lint-config
Advanced tools
Linter configurations for Pa11y projects. This module should be used to ensure that the Pa11y coding style is consistent across all of our repositories.
This library requires Node.js 4+.
Pa11y Lint Config provides some linter config files which can be included in your project.
To use the ESLint config files, first install this module and ESLint, saving them to development dependencies:
npm install --save-dev eslint pa11y-lint-config
Now you should create .eslintrc.js
and .eslintignore
files in your project root. The command below provides some defaults which should be enough for most new Pa11y projects:
printf "coverage\n" > .eslintignore
printf "'use strict';\n\nmodule.exports = require('pa11y-lint-config/eslint/es6');\n" > .eslintrc.js
If your project uses ES5 syntax (should mostly be browser or legacy projects), then you'll need to include eslint/es5
instead of eslint/es6
:
printf "'use strict';\n\nmodule.exports = require('pa11y-lint-config/eslint/es5');\n" > .eslintrc.js
If your project contains a mix of ES6 and ES5 (e.g. Node.js and browser) then you can include different config files in each directory.
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:
make ci
Licensed under the Lesser General Public License (LGPL-3.0).
Copyright © 2017, Team Pa11y
FAQs
Linter configurations for Pa11y projects
We found that pa11y-lint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.