Last active
September 14, 2016 17:07
-
-
Save christianvuerings/ea1f61161940ae284a10eb31bfde7a8e to your computer and use it in GitHub Desktop.
Convert all the rules on the eslint-plugin-jsx-a11y github page to a JSON page we can use in our repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Go to https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules | |
// 2. Run the following script: | |
(() => { | |
let output = {}; | |
[...document.querySelectorAll('.files .js-navigation-item .content a[title]')] | |
.forEach(file => output[`jsx-a11y/${file.getAttribute('title').replace('.md', '')}`] = 2) | |
console.log(JSON.stringify(output, null, 4)); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment