From 0269025fbe6009ccbb8deb54900b1384bb97534e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 28 Oct 2021 07:16:02 -0700 Subject: [PATCH] [meta] change all `master` references in URLs to `HEAD` --- .eslintrc | 2 +- CHANGELOG.md | 2 +- README.md | 72 +++++++++---------- __tests__/src/rules/anchor-is-valid-test.js | 6 +- docs/rules/html-has-lang.md | 2 +- src/rules/accessible-emoji.js | 2 +- src/rules/alt-text.js | 2 +- src/rules/anchor-has-content.js | 2 +- src/rules/anchor-is-valid.js | 8 +-- .../aria-activedescendant-has-tabindex.js | 2 +- src/rules/aria-props.js | 2 +- src/rules/aria-proptypes.js | 2 +- src/rules/aria-role.js | 2 +- src/rules/aria-unsupported-elements.js | 2 +- src/rules/autocomplete-valid.js | 2 +- src/rules/click-events-have-key-events.js | 2 +- src/rules/heading-has-content.js | 2 +- src/rules/html-has-lang.js | 2 +- src/rules/iframe-has-title.js | 2 +- src/rules/img-redundant-alt.js | 2 +- src/rules/interactive-supports-focus.js | 2 +- src/rules/label-has-for.js | 2 +- src/rules/lang.js | 2 +- src/rules/media-has-caption.js | 2 +- src/rules/mouse-events-have-key-events.js | 2 +- src/rules/no-access-key.js | 2 +- src/rules/no-autofocus.js | 2 +- src/rules/no-distracting-elements.js | 2 +- ...eractive-element-to-noninteractive-role.js | 2 +- .../no-noninteractive-element-interactions.js | 2 +- ...interactive-element-to-interactive-role.js | 2 +- src/rules/no-noninteractive-tabindex.js | 2 +- src/rules/no-onchange.js | 2 +- src/rules/no-redundant-roles.js | 2 +- src/rules/no-static-element-interactions.js | 2 +- src/rules/role-has-required-aria-props.js | 2 +- src/rules/role-supports-aria-props.js | 2 +- src/rules/scope.js | 2 +- src/rules/tabindex-no-positive.js | 2 +- 39 files changed, 79 insertions(+), 79 deletions(-) diff --git a/.eslintrc b/.eslintrc index 79b5a60c3..a32ded5a9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -18,7 +18,7 @@ "rules": { "eslint-plugin/require-meta-docs-url": [ "error", - { "pattern": "https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/{{name}}.md" } + { "pattern": "https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/{{name}}.md" } ], "eslint-plugin/require-meta-type": "off" } diff --git a/CHANGELOG.md b/CHANGELOG.md index c48d6b450..811432fd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -262,7 +262,7 @@ Add new rules: - [new] - `href-no-hash` accepts new schema property `specialLink` to check for custom `href` properties on elements. (fixes [#76](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/76)) - [breaking][fix] - `img-has-alt` now prefers `alt=""` over `role="presentation"`. You can set both, but not just `role="presentation"` by itself to ensure a11y across all devices. -Note - see [rule documentation](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules) for updated schemas. +Note - see [rule documentation](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules) for updated schemas. 2.2.3 / 2016-10-08 ================== diff --git a/README.md b/README.md index f44a74549..6109d1639 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ npm version - + license @@ -28,9 +28,9 @@ Static AST checker for accessibility rules on JSX elements. -#### *Read this in [other languages](https://github.com/ari-os310/eslint-plugin-jsx-a11y/blob/master/translations/Translations.md).* +#### *Read this in [other languages](https://github.com/ari-os310/eslint-plugin-jsx-a11y/blob/HEAD/translations/Translations.md).* -[Mexican Spanish🇲🇽](https://github.com/ari-os310/eslint-plugin-jsx-a11y/blob/master/translations/README.mx.md) +[Mexican Spanish🇲🇽](https://github.com/ari-os310/eslint-plugin-jsx-a11y/blob/HEAD/translations/README.mx.md) ## Why? Ryan Florence built out this awesome runtime-analysis tool called [react-a11y](https://github.com/reactjs/react-a11y). It is super useful. However, since you're probably already using linting in your project, this plugin comes for free and closer to the actual development process. Pairing this plugin with an editor lint plugin, you can bake accessibility standards into your application in real-time. @@ -39,7 +39,7 @@ Ryan Florence built out this awesome runtime-analysis tool called [react-a11y](h ## Installation -**If you are installing this plugin via `eslint-config-airbnb`, please follow [these instructions](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb#eslint-config-airbnb-1).** +**If you are installing this plugin via `eslint-config-airbnb`, please follow [these instructions](https://github.com/airbnb/javascript/tree/HEAD/packages/eslint-config-airbnb#eslint-config-airbnb-1).** You'll first need to install [ESLint](http://eslint.org): @@ -137,38 +137,38 @@ Add `plugin:jsx-a11y/recommended` or `plugin:jsx-a11y/strict` in `extends`: Rule | Recommended | Strict ------------ | ------------- | ------------- -[alt-text](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md) | error | error -[anchor-has-content](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-has-content.md) | error | error -[anchor-is-valid](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md) | error | error -[aria-activedescendant-has-tabindex](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-activedescendant-has-tabindex.md) | error | error -[aria-props](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-props.md) | error | error -[aria-proptypes](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-proptypes.md) | error | error -[aria-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-role.md) | error | error -[aria-unsupported-elements](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md) | error | error -[autocomplete-valid](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/autocomplete-valid.md) | error | error -[click-events-have-key-events](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md) | error | error -[heading-has-content](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/heading-has-content.md) | error | error -[html-has-lang](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/html-has-lang.md) | error | error -[iframe-has-title](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/iframe-has-title.md) | error | error -[img-redundant-alt](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-redundant-alt.md) | error | error -[interactive-supports-focus](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/interactive-supports-focus.md) | error | error -[label-has-associated-control](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md) | error | error -[media-has-caption](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/media-has-caption.md) | error | error -[mouse-events-have-key-events](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md) | error | error -[no-access-key](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-access-key.md) | error | error -[no-autofocus](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md) | error | error -[no-distracting-elements](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-distracting-elements.md) | error | error -[no-interactive-element-to-noninteractive-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-interactive-element-to-noninteractive-role.md) | error, with options | error -[no-noninteractive-element-interactions](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-interactions.md) | error, with options | error -[no-noninteractive-element-to-interactive-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md) | error, with options | error -[no-noninteractive-tabindex](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-tabindex.md) | error, with options | error -[no-onchange](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-onchange.md) | error | error -[no-redundant-roles](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md) | error | error -[no-static-element-interactions](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md) | error, with options | error -[role-has-required-aria-props](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-has-required-aria-props.md) | error | error -[role-supports-aria-props](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/role-supports-aria-props.md) | error | error -[scope](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/scope.md) | error, with options | error -[tabindex-no-positive](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/tabindex-no-positive.md) | error | error +[alt-text](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/alt-text.md) | error | error +[anchor-has-content](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-has-content.md) | error | error +[anchor-is-valid](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md) | error | error +[aria-activedescendant-has-tabindex](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/aria-activedescendant-has-tabindex.md) | error | error +[aria-props](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/aria-props.md) | error | error +[aria-proptypes](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/aria-proptypes.md) | error | error +[aria-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/aria-role.md) | error | error +[aria-unsupported-elements](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/aria-unsupported-elements.md) | error | error +[autocomplete-valid](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/autocomplete-valid.md) | error | error +[click-events-have-key-events](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/click-events-have-key-events.md) | error | error +[heading-has-content](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/heading-has-content.md) | error | error +[html-has-lang](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/html-has-lang.md) | error | error +[iframe-has-title](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/iframe-has-title.md) | error | error +[img-redundant-alt](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/img-redundant-alt.md) | error | error +[interactive-supports-focus](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/interactive-supports-focus.md) | error | error +[label-has-associated-control](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/label-has-associated-control.md) | error | error +[media-has-caption](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/media-has-caption.md) | error | error +[mouse-events-have-key-events](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/mouse-events-have-key-events.md) | error | error +[no-access-key](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-access-key.md) | error | error +[no-autofocus](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-autofocus.md) | error | error +[no-distracting-elements](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-distracting-elements.md) | error | error +[no-interactive-element-to-noninteractive-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-interactive-element-to-noninteractive-role.md) | error, with options | error +[no-noninteractive-element-interactions](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-noninteractive-element-interactions.md) | error, with options | error +[no-noninteractive-element-to-interactive-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-noninteractive-element-to-interactive-role.md) | error, with options | error +[no-noninteractive-tabindex](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-noninteractive-tabindex.md) | error, with options | error +[no-onchange](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-onchange.md) | error | error +[no-redundant-roles](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-redundant-roles.md) | error | error +[no-static-element-interactions](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/no-static-element-interactions.md) | error, with options | error +[role-has-required-aria-props](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/role-has-required-aria-props.md) | error | error +[role-supports-aria-props](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/role-supports-aria-props.md) | error | error +[scope](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/scope.md) | error, with options | error +[tabindex-no-positive](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/tabindex-no-positive.md) | error | error The following rules have extra options when in *recommended* mode: diff --git a/__tests__/src/rules/anchor-is-valid-test.js b/__tests__/src/rules/anchor-is-valid-test.js index f0feadea8..78da24e67 100644 --- a/__tests__/src/rules/anchor-is-valid-test.js +++ b/__tests__/src/rules/anchor-is-valid-test.js @@ -18,11 +18,11 @@ import rule from '../../../src/rules/anchor-is-valid'; const ruleTester = new RuleTester(); -const preferButtonErrorMessage = 'Anchor used as a button. Anchors are primarily expected to navigate. Use the button element instead. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md'; +const preferButtonErrorMessage = 'Anchor used as a button. Anchors are primarily expected to navigate. Use the button element instead. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md'; -const noHrefErrorMessage = 'The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md'; +const noHrefErrorMessage = 'The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md'; -const invalidHrefErrorMessage = 'The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md'; +const invalidHrefErrorMessage = 'The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md'; const preferButtonexpectedError = { message: preferButtonErrorMessage, diff --git a/docs/rules/html-has-lang.md b/docs/rules/html-has-lang.md index 649706e0c..9ba9763ec 100644 --- a/docs/rules/html-has-lang.md +++ b/docs/rules/html-has-lang.md @@ -1,6 +1,6 @@ # html-has-lang - elements must have the lang prop. This rule is largely superseded by the [`lang` rule](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/lang.md). + elements must have the lang prop. This rule is largely superseded by the [`lang` rule](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/lang.md). ## Rule details diff --git a/src/rules/accessible-emoji.js b/src/rules/accessible-emoji.js index d08025de0..3488c47dc 100644 --- a/src/rules/accessible-emoji.js +++ b/src/rules/accessible-emoji.js @@ -19,7 +19,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/accessible-emoji.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/accessible-emoji.md', }, deprecated: true, schema: [schema], diff --git a/src/rules/alt-text.js b/src/rules/alt-text.js index c4bbec476..b3a7ef7de 100644 --- a/src/rules/alt-text.js +++ b/src/rules/alt-text.js @@ -195,7 +195,7 @@ const ruleByElement = { export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/alt-text.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/alt-text.md', }, schema: [schema], }, diff --git a/src/rules/anchor-has-content.js b/src/rules/anchor-has-content.js index 773ea7624..c29baeea9 100644 --- a/src/rules/anchor-has-content.js +++ b/src/rules/anchor-has-content.js @@ -18,7 +18,7 @@ const schema = generateObjSchema({ components: arraySchema }); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/anchor-has-content.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-has-content.md', }, schema: [schema], }, diff --git a/src/rules/anchor-is-valid.js b/src/rules/anchor-is-valid.js index 9dad0a743..fc1112832 100644 --- a/src/rules/anchor-is-valid.js +++ b/src/rules/anchor-is-valid.js @@ -15,11 +15,11 @@ import { generateObjSchema, arraySchema, enumArraySchema } from '../util/schemas const allAspects = ['noHref', 'invalidHref', 'preferButton']; -const preferButtonErrorMessage = 'Anchor used as a button. Anchors are primarily expected to navigate. Use the button element instead. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md'; +const preferButtonErrorMessage = 'Anchor used as a button. Anchors are primarily expected to navigate. Use the button element instead. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md'; -const noHrefErrorMessage = 'The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md'; +const noHrefErrorMessage = 'The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md'; -const invalidHrefErrorMessage = 'The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md'; +const invalidHrefErrorMessage = 'The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md'; const schema = generateObjSchema({ components: arraySchema, @@ -30,7 +30,7 @@ const schema = generateObjSchema({ export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/anchor-is-valid.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-is-valid.md', }, schema: [schema], }, diff --git a/src/rules/aria-activedescendant-has-tabindex.js b/src/rules/aria-activedescendant-has-tabindex.js index 7c823d673..ec510c4ae 100644 --- a/src/rules/aria-activedescendant-has-tabindex.js +++ b/src/rules/aria-activedescendant-has-tabindex.js @@ -22,7 +22,7 @@ const domElements = [...dom.keys()]; export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-activedescendant-has-tabindex.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-activedescendant-has-tabindex.md', }, schema: [schema], }, diff --git a/src/rules/aria-props.js b/src/rules/aria-props.js index c26a0d425..86a190e2b 100644 --- a/src/rules/aria-props.js +++ b/src/rules/aria-props.js @@ -30,7 +30,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-props.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-props.md', }, schema: [schema], }, diff --git a/src/rules/aria-proptypes.js b/src/rules/aria-proptypes.js index 5b25a433d..0f914fb7b 100644 --- a/src/rules/aria-proptypes.js +++ b/src/rules/aria-proptypes.js @@ -66,7 +66,7 @@ export default { validityCheck, meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-proptypes.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-proptypes.md', }, schema: [schema], }, diff --git a/src/rules/aria-role.js b/src/rules/aria-role.js index 37e145737..52bed2b86 100644 --- a/src/rules/aria-role.js +++ b/src/rules/aria-role.js @@ -23,7 +23,7 @@ const schema = generateObjSchema({ export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-role.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-role.md', }, schema: [schema], }, diff --git a/src/rules/aria-unsupported-elements.js b/src/rules/aria-unsupported-elements.js index cab0c4542..9b7e281ea 100644 --- a/src/rules/aria-unsupported-elements.js +++ b/src/rules/aria-unsupported-elements.js @@ -25,7 +25,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/aria-unsupported-elements.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-unsupported-elements.md', }, schema: [schema], }, diff --git a/src/rules/autocomplete-valid.js b/src/rules/autocomplete-valid.js index 94305e85c..abff7adde 100644 --- a/src/rules/autocomplete-valid.js +++ b/src/rules/autocomplete-valid.js @@ -17,7 +17,7 @@ const schema = generateObjSchema({ export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/autocomplete-valid.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/autocomplete-valid.md', }, schema: [schema], }, diff --git a/src/rules/click-events-have-key-events.js b/src/rules/click-events-have-key-events.js index 2db3c89a0..7094085fa 100644 --- a/src/rules/click-events-have-key-events.js +++ b/src/rules/click-events-have-key-events.js @@ -23,7 +23,7 @@ const domElements = [...dom.keys()]; export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/click-events-have-key-events.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/click-events-have-key-events.md', }, schema: [schema], }, diff --git a/src/rules/heading-has-content.js b/src/rules/heading-has-content.js index d894cda2d..19ecac080 100644 --- a/src/rules/heading-has-content.js +++ b/src/rules/heading-has-content.js @@ -28,7 +28,7 @@ const schema = generateObjSchema({ components: arraySchema }); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/heading-has-content.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/heading-has-content.md', }, schema: [schema], }, diff --git a/src/rules/html-has-lang.js b/src/rules/html-has-lang.js index 9827600b7..dc12b5a8f 100644 --- a/src/rules/html-has-lang.js +++ b/src/rules/html-has-lang.js @@ -17,7 +17,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/html-has-lang.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/html-has-lang.md', }, schema: [schema], }, diff --git a/src/rules/iframe-has-title.js b/src/rules/iframe-has-title.js index 698dce213..938b07230 100644 --- a/src/rules/iframe-has-title.js +++ b/src/rules/iframe-has-title.js @@ -17,7 +17,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/iframe-has-title.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/iframe-has-title.md', }, schema: [schema], }, diff --git a/src/rules/img-redundant-alt.js b/src/rules/img-redundant-alt.js index 667f56b92..604a502c8 100644 --- a/src/rules/img-redundant-alt.js +++ b/src/rules/img-redundant-alt.js @@ -27,7 +27,7 @@ const schema = generateObjSchema({ export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/img-redundant-alt.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/img-redundant-alt.md', }, schema: [schema], }, diff --git a/src/rules/interactive-supports-focus.js b/src/rules/interactive-supports-focus.js index 3ca497ef2..a172744cd 100644 --- a/src/rules/interactive-supports-focus.js +++ b/src/rules/interactive-supports-focus.js @@ -50,7 +50,7 @@ const interactiveProps = [ export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/interactive-supports-focus.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/interactive-supports-focus.md', }, schema: [schema], }, diff --git a/src/rules/label-has-for.js b/src/rules/label-has-for.js index bf5d95f41..2166a5b80 100644 --- a/src/rules/label-has-for.js +++ b/src/rules/label-has-for.js @@ -88,7 +88,7 @@ export default { meta: { deprecated: true, docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/label-has-for.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/label-has-for.md', }, schema: [schema], }, diff --git a/src/rules/lang.js b/src/rules/lang.js index 88a584b20..5ec36015d 100644 --- a/src/rules/lang.js +++ b/src/rules/lang.js @@ -18,7 +18,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/lang.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/lang.md', }, schema: [schema], }, diff --git a/src/rules/media-has-caption.js b/src/rules/media-has-caption.js index 147f7d4cd..0a17ee4bc 100644 --- a/src/rules/media-has-caption.js +++ b/src/rules/media-has-caption.js @@ -38,7 +38,7 @@ const isTrackType = (context, type) => { export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/media-has-caption.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/media-has-caption.md', }, schema: [schema], }, diff --git a/src/rules/mouse-events-have-key-events.js b/src/rules/mouse-events-have-key-events.js index cd836245d..59d471e4d 100644 --- a/src/rules/mouse-events-have-key-events.js +++ b/src/rules/mouse-events-have-key-events.js @@ -20,7 +20,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/mouse-events-have-key-events.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/mouse-events-have-key-events.md', }, schema: [schema], }, diff --git a/src/rules/no-access-key.js b/src/rules/no-access-key.js index fe5ade58a..d212d008a 100644 --- a/src/rules/no-access-key.js +++ b/src/rules/no-access-key.js @@ -17,7 +17,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-access-key.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-access-key.md', }, schema: [schema], }, diff --git a/src/rules/no-autofocus.js b/src/rules/no-autofocus.js index a4e26f7da..f16f040d0 100644 --- a/src/rules/no-autofocus.js +++ b/src/rules/no-autofocus.js @@ -23,7 +23,7 @@ const schema = generateObjSchema({ export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-autofocus.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-autofocus.md', }, schema: [schema], }, diff --git a/src/rules/no-distracting-elements.js b/src/rules/no-distracting-elements.js index b7e82ea60..366a5bf44 100644 --- a/src/rules/no-distracting-elements.js +++ b/src/rules/no-distracting-elements.js @@ -26,7 +26,7 @@ const schema = generateObjSchema({ export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-distracting-elements.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-distracting-elements.md', }, schema: [schema], }, diff --git a/src/rules/no-interactive-element-to-noninteractive-role.js b/src/rules/no-interactive-element-to-noninteractive-role.js index 6b029d4cd..dff3d2eab 100644 --- a/src/rules/no-interactive-element-to-noninteractive-role.js +++ b/src/rules/no-interactive-element-to-noninteractive-role.js @@ -32,7 +32,7 @@ const domElements = [...dom.keys()]; export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-interactive-element-to-noninteractive-role.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-interactive-element-to-noninteractive-role.md', }, schema: [{ type: 'object', diff --git a/src/rules/no-noninteractive-element-interactions.js b/src/rules/no-noninteractive-element-interactions.js index 810f396ee..68d4153e1 100644 --- a/src/rules/no-noninteractive-element-interactions.js +++ b/src/rules/no-noninteractive-element-interactions.js @@ -45,7 +45,7 @@ const schema = generateObjSchema({ export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-noninteractive-element-interactions.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-interactions.md', }, schema: [schema], }, diff --git a/src/rules/no-noninteractive-element-to-interactive-role.js b/src/rules/no-noninteractive-element-to-interactive-role.js index c8512eafd..4be06cee7 100644 --- a/src/rules/no-noninteractive-element-to-interactive-role.js +++ b/src/rules/no-noninteractive-element-to-interactive-role.js @@ -30,7 +30,7 @@ const domElements = [...dom.keys()]; export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-noninteractive-element-to-interactive-role.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-to-interactive-role.md', }, schema: [{ type: 'object', diff --git a/src/rules/no-noninteractive-tabindex.js b/src/rules/no-noninteractive-tabindex.js index 77515878c..434ceb584 100644 --- a/src/rules/no-noninteractive-tabindex.js +++ b/src/rules/no-noninteractive-tabindex.js @@ -39,7 +39,7 @@ const schema = generateObjSchema({ export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-noninteractive-tabindex.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-tabindex.md', }, schema: [schema], }, diff --git a/src/rules/no-onchange.js b/src/rules/no-onchange.js index d5e0dc6b9..77b081253 100644 --- a/src/rules/no-onchange.js +++ b/src/rules/no-onchange.js @@ -22,7 +22,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-onchange.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-onchange.md', }, deprecated: true, schema: [schema], diff --git a/src/rules/no-redundant-roles.js b/src/rules/no-redundant-roles.js index 4575a2c69..7b1360320 100644 --- a/src/rules/no-redundant-roles.js +++ b/src/rules/no-redundant-roles.js @@ -26,7 +26,7 @@ const DEFAULT_ROLE_EXCEPTIONS = { nav: ['navigation'] }; export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-redundant-roles.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-redundant-roles.md', }, schema: [{ type: 'object', diff --git a/src/rules/no-static-element-interactions.js b/src/rules/no-static-element-interactions.js index d9ace5310..2a4082f91 100644 --- a/src/rules/no-static-element-interactions.js +++ b/src/rules/no-static-element-interactions.js @@ -44,7 +44,7 @@ const schema = generateObjSchema({ export default ({ meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-static-element-interactions.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-static-element-interactions.md', }, schema: [schema], }, diff --git a/src/rules/role-has-required-aria-props.js b/src/rules/role-has-required-aria-props.js index c4df366f2..912798300 100644 --- a/src/rules/role-has-required-aria-props.js +++ b/src/rules/role-has-required-aria-props.js @@ -27,7 +27,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/role-has-required-aria-props.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-has-required-aria-props.md', }, schema: [schema], }, diff --git a/src/rules/role-supports-aria-props.js b/src/rules/role-supports-aria-props.js index b0728fcfb..161dc9c22 100644 --- a/src/rules/role-supports-aria-props.js +++ b/src/rules/role-supports-aria-props.js @@ -36,7 +36,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/role-supports-aria-props.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-supports-aria-props.md', }, schema: [schema], }, diff --git a/src/rules/scope.js b/src/rules/scope.js index 84f96e93a..d245d6f80 100644 --- a/src/rules/scope.js +++ b/src/rules/scope.js @@ -18,7 +18,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/scope.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/scope.md', }, schema: [schema], }, diff --git a/src/rules/tabindex-no-positive.js b/src/rules/tabindex-no-positive.js index d1f7c65a4..529018abe 100644 --- a/src/rules/tabindex-no-positive.js +++ b/src/rules/tabindex-no-positive.js @@ -17,7 +17,7 @@ const schema = generateObjSchema(); export default { meta: { docs: { - url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/master/docs/rules/tabindex-no-positive.md', + url: 'https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/tabindex-no-positive.md', }, schema: [schema], },