Skip to content

Instantly share code, notes, and snippets.

@christianvuerings
Last active September 14, 2016 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christianvuerings/ea1f61161940ae284a10eb31bfde7a8e to your computer and use it in GitHub Desktop.
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
// 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