Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const ss = `
- accessible-emoji\terror\terror
- alt-text\terror\terror
- anchor-has-content\terror\terror
- anchor-is-valid\terror\terror
- aria-activedescendant-has-tabindex\terror\terror
- aria-props\terror\terror
- aria-proptypes\terror\terror
- aria-role\terror\terror
- aria-unsupported-elements\terror\terror
- autocomplete-valid\terror\terror
- click-events-have-key-events\terror\terror
- control-has-associated-label\terror\terror
- heading-has-content\terror\terror
- html-has-lang\terror\terror
- iframe-has-title\terror\terror
- img-redundant-alt\terror\terror
- interactive-supports-focus\terror\terror
- label-has-associated-control\terror\terror
- label-has-for\terror\terror
- lang\terror\terror
- media-has-caption\terror\terror
- mouse-events-have-key-events\terror\terror
- no-access-key\terror\terror
- no-autofocus\terror\terror
- no-distracting-elements\terror\terror
- no-interactive-element-to-noninteractive-role\terror, with options\terror
- no-noninteractive-element-interactions\terror, with options\terror
- no-noninteractive-element-to-interactive-role\terror, with options\terror
- no-noninteractive-tabindex\terror, with options\terror
- no-onchange\terror\terror
- no-redundant-roles\terror\terror
- no-static-element-interactions\terror, with options\terror
- role-has-required-aria-props\terror\terror
- role-supports-aria-props\terror\terror
- scope\terror, with options\terror
- tabindex-no-positive\terror\terror
- `;
- const supported = require('./supported').rules;
- const allRules = {};
- ss.split('\n').forEach((l) => {
- if (l) {
- const n = `jsx-a11y/${l.trim().split('\t')[0]}`;
- allRules[n] = 'Waiting...';
- if (supported[n]) {
- allRules[n] = supported[n];
- }
- }
- });
- // Console.log(supported)
- console.log(JSON.stringify(allRules, null, 2));
Advertisement
Add Comment
Please, Sign In to add comment