From 811f108f966eac83056c2a10d58a3ea29020dc86 Mon Sep 17 00:00:00 2001 From: qrg Date: Mon, 9 Dec 2019 13:31:16 +0900 Subject: [PATCH] build(lint): Allow Link components as valid anchor elements * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md#rule-details * https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/402 --- .eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index bbcfa1d4..924f7591 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -37,6 +37,13 @@ const rules = { argsIgnorePattern: '^_', varsIgnorePattern: '^_' } + ], + 'jsx-a11y/anchor-is-valid': [ + 'error', + { + components: ['Link'], + aspects: ['invalidHref', 'preferButton'] + } ] };