From 4817a6b75cd44fe8b28a16b06d33a5c65603a74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= Date: Tue, 28 Nov 2017 19:47:00 +0100 Subject: [PATCH] [eslint config] [patch] Add 'to' as a specialLink to the 'anchor-is-valid' a11y rule Support React Router's `` attribute out of the box. --- packages/eslint-config-airbnb/rules/react-a11y.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/react-a11y.js b/packages/eslint-config-airbnb/rules/react-a11y.js index 6e1c3956..3e7f5c97 100644 --- a/packages/eslint-config-airbnb/rules/react-a11y.js +++ b/packages/eslint-config-airbnb/rules/react-a11y.js @@ -187,7 +187,7 @@ module.exports = { // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/0745af376cdc8686d85a361ce36952b1fb1ccf6e/docs/rules/anchor-is-valid.md 'jsx-a11y/anchor-is-valid': ['error', { components: ['Link'], - specialLink: [], + specialLink: ['to'], aspects: ['noHref', 'invalidHref', 'preferButton'], }], },